Edit PHP configuration
Adjust upload, memory, execution and other PHP limits for this website.
Where Websites โ your website โ Advanced โ Developer tools โ php.ini editor
What this is for
- Inspect site-level PHP values.
- Change a required limit.
- Keep configuration changes small and traceable.
Before you start
- Copy the exact setting named by the error or application requirement.
- Record the old value and avoid raising limits further than necessary.
Take care
Very high limits can turn application bugs or abusive requests into resource exhaustion. Increase only as far as needed.
Steps
-
1
Identify the exact directive and required value from the application documentation or error message.
-
2
Open Websites, select the website, open Advanced, choose Developer tools and select php.ini editor on the left.
-
3
Find the directive in the table. Inherited means the website is currently using the platform's default value.
-
4
Use the row's three-dot menu to edit an existing directive, or select Add directive when the setting is not listed.
-
5
Record the old value, enter the smallest value that meets the requirement and save the override.
-
6
Keep related limits sensible: post_max_size normally needs to be at least as large as upload_max_filesize.
-
7
Repeat the failed upload or process and inspect php-error.log in the PHP section.
-
8
If the change does not solve the problem, remove the override or restore the previous value so the site is not left with an unnecessary high limit.
Check it worked
- The editor still shows the new value after saving and refreshing.
- Repeat the failed upload or process and confirm it succeeds without causing a resource or timeout problem.
What the controls do
| Control | What it means |
|---|---|
| Inherited | The value comes from the platform or package default rather than a website-specific override. |
| Add directive | Creates a website-specific PHP setting that is not already listed. |
| Three-dot menu | Opens the edit or reset actions for one existing directive. |
| memory_limit | Maximum memory available to one PHP process. |
| upload_max_filesize | Maximum size of an individual uploaded file. |
| post_max_size | Maximum complete request body; normally at least as large as the upload limit. |