From the panel you can change the most common PHP options without editing files: memory per script, maximum upload size, maximum execution time, errors, time zone and more. Each domain keeps its own.
- In your hosting, under Advanced, open PHP.
- In PHP options (php.ini), choose the Domain (or All domains).
- Change what you need. Each option shows the server value: anything left on Server default uses it.
- Click Save options.
The most used ones
- Memory per script (memory_limit): raise it if you see “Allowed memory size exhausted”.
- Maximum upload file size and maximum request size (upload_max_filesize and post_max_size): to upload large files or themes. The second must be equal to or larger than the first.
- Maximum fields per request (max_input_vars): raise it if a long WordPress menu or a store doesn't save everything.
- Show errors on the page (display_errors): only while tracking down a problem; keep it off on a live website.
Under Advanced you can write other directives, one per line (for example default_charset = "UTF-8"). Only directives PHP allows per folder are accepted; the ones that affect server security (such as disable_functions or open_basedir) can't be changed.
Changes usually apply right away. On some accounts (those using PHP-FPM) they can take up to 5 minutes: the panel tells you how long.
On Cloud plans, memory per script can't exceed the plan limit. If your site needs more, see PHP processes and memory or upgrade your plan.
Ask the assistant
Still have a question about this? Ask the assistant.
Was this article helpful?
Related articles
- Change your PHP versionChoose the PHP version of each domain and subdomain from your panel, in one click.
- PHP processes and the “+10 PHP processes” add-onWhat PHP processes are, how many your plan has and how to add more without changing plans.
- Tips to make your WordPress site load fasterWhat has the biggest impact on speed: caching, images, plugins, PHP and your plan's resources.