PHP settings (MultiPHP INI Editor)
How to change memory_limit, upload_max_filesize, max_execution_time and other PHP directives.
You change PHP's behavior with settings (directives). You most often need to raise them when a file upload fails or a script reports "Allowed memory size exhausted" or a timeout.
MultiPHP INI Editor#
- In cPanel open Software → MultiPHP INI Editor.
- On the Basic Mode tab choose the domain in Configure PHP INI basic settings.
- Change the values, e.g. memory_limit, upload_max_filesize, post_max_size, max_execution_time.
- Click Apply.
For more advanced changes use the Editor Mode tab, where you edit the text of the directives directly for the chosen domain.
Commonly used directives#
| Directive | Meaning |
|---|---|
memory_limit | maximum memory per script |
upload_max_filesize | maximum size of a single uploaded file |
post_max_size | maximum size of the whole request; keep it larger than upload_max_filesize |
max_execution_time | how many seconds a script may run |
max_input_vars | maximum number of fields in one form (important for large themes and menus) |
Checking#
Create a file info.php containing <?php phpinfo(); in public_html, open it in your browser and look for the directive.
You change the PHP version in MultiPHP Manager. Errors after changes are visible in the log: PHP errors and logs.
Questo articolo ti è stato utile?
Grazie per il tuo feedback! Ti serve aiuto? Apri un ticket.
