Step 1: Modify PHP Settings via Control Panel

  1. Log in to your Client Area and open your hosting control panel.
  2. Navigate to Web Tools > PHP Configuration.
  3. Adjust the desired PHP settings. Common options include:
    • upload_max_filesize
    • post_max_size
    • memory_limit
    • max_execution_time
    • display_errors
  4. Once saved, the system creates a .user.ini file in your primary domain's root directory.
ℹ️ Note: Changes may take up to 5 minutes to take effect due to PHP caching.

Step 2: Apply the Same Settings to Other Domains or Subdomains

Option 1: Copy the .user.ini File

  1. Navigate to the root folder of your primary domain (e.g., /public_html/).
  2. Copy the .user.ini file.
  3. Paste it into the root folder of any other domain or subdomain (e.g., /subdomain/ or /domains/example.com/public_html/).

Option 2: Edit .user.ini Manually

You can also create or customize a .user.ini file directly. Here's an example configuration:

upload_max_filesize = 100M
post_max_size = 100M
memory_limit = 256M
max_execution_time = 300
display_errors = On

Make sure the file is named exactly .user.ini (including the dot at the start).


How to Verify Your Changes

  1. Create a file named info.php in the folder where you applied the settings.
  2. Paste the following code:
    <?php phpinfo(); ?>
  3. Visit the file in your browser (e.g., https://yourdomain.com/info.php) and check if the updated PHP settings are reflected.

Quick Summary

Task Action
Modify PHP settings Use PHP Configuration in the control panel
Settings location Saved in .user.ini in the domain's root
Apply to other sites Copy or manually edit .user.ini in each folder
Confirm changes Use a phpinfo() file

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)