Step 1: Modify PHP Settings via Control Panel
- Log in to your Client Area and open your hosting control panel.
- Navigate to Web Tools > PHP Configuration.
- Adjust the desired PHP settings. Common options include:
upload_max_filesizepost_max_sizememory_limitmax_execution_timedisplay_errors
- Once saved, the system creates a
.user.inifile 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
- Navigate to the root folder of your primary domain (e.g.,
/public_html/). - Copy the
.user.inifile. - 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
- Create a file named
info.phpin the folder where you applied the settings. - Paste the following code:
<?php phpinfo(); ?>
- 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 |
