How to change PHP settings like memory_limit and upload size
You do not need a php.ini file: the most common PHP settings can be changed on the PHP page. They apply to all websites of your account.
Steps
- Log in to the control panel (
https://<server>:2083). - Open PHP in the menu (section Advanced).
- Under PHP settings, either click a Ready-made button to fill in values for a common kind of site, or fill in the fields yourself (see the table).
- Leave a field empty to use the server default.
- Click Save settings.
The new values apply within a few seconds, from the next page load.
Settings you can change
| Field | PHP setting | Allowed values |
|---|---|---|
| Memory limit (MB) | memory_limit | 32–2048 |
| Max upload size (MB) | upload_max_filesize | 1–2048 |
| Max POST size (MB) | post_max_size | 1–2048, at least the max upload size |
| Max execution time (seconds) | max_execution_time | 10–3600 |
| Max input time (seconds) | max_input_time | 10–3600 |
| Max input vars | max_input_vars | 1000–100000 |
| Show errors in the page | display_errors | Server default, On, Off |
| Time zone | date.timezone | any time zone, for example Europe/Berlin |
Ready-made presets
| Button | Memory | Upload / POST | Execution / input time | Input vars |
|---|---|---|---|---|
| WordPress | 256 MB | 64 MB | 120 s | 3000 |
| WooCommerce / large shop | 512 MB | 128 MB | 300 s | 10000 |
| Laravel / framework | 256 MB | 32 MB | 60 s | 3000 |
| Large uploads | 512 MB | 1024 MB | 1800 s | — |
| Development (show errors) | 512 MB | — | 300 s | — |
Server defaults empties every field. The first three presets also set Show errors in the page to Off; Development (show errors) sets it to On. A preset only fills the form — click Save settings to apply it.
Good to know
- Your plan still limits memory. A PHP memory limit above your plan's memory (shown on Resource Usage) does not give the site more memory.
- Turn off "Show errors in the page" on live sites. Errors are always written to
~/logs/php-errors.logand shown on the Errors page, so visitors never need to see them. php_valuelines in.htaccessat the top of a website's folder are also applied for these settings and a few others. Values set on this page win over.htaccess. See which .htaccess rules work.- Some settings cannot be changed, for example
disable_functions(functions such asexecandshell_execare turned off) andopen_basedir(PHP can only open files in your home folder and/tmp). - To change which PHP extensions are installed, ask your hosting provider.
Common questions
Why do I get "Max POST size must be at least the max upload size."?
An upload is sent inside a POST request, so the POST limit must be the same or larger. Raise Max POST size (MB) too.
Can I set different PHP settings for each website?
Not on this page: the settings apply to the whole account. For one website, use php_value lines in that website's .htaccess.
How do I check the values in use?
Create a file info.php containing <?php phpinfo(); in the website's folder, open it in the browser, then delete it again.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to change the PHP version of your website
Choose the PHP version for your whole hosting account or for one domain only, see which versions are installed, and what to check after switching.
- Upload fails with "exceeds the upload_max_filesize" error
Fix "The uploaded file exceeds the upload_max_filesize directive" in WordPress or any PHP site by raising the upload and POST limits in the PHP page.
- Which .htaccess rules work on your hosting
What the web server reads from .htaccess: rewrite rules, Deny/Require lines, Files blocks and php_value settings, what is ignored, and how fast changes apply.
- How to see the PHP error log of your website
Find the PHP errors behind a blank page or 500 error on the Errors page, read the full log in ~/logs/php-errors.log, and show errors while debugging.