Skip to content

PHP settings

Each website has its own PHP settings. Changing them affects only that website. Open the website and go to Hosting › PHP.

Pick a version from PHP version. The change starts as soon as you choose it; there is no separate save.

The list shows the PHP versions installed and working on the website’s server, from PHP 8.0 to PHP 8.5. If none is listed, the page says “No healthy PHP runtimes were reported”; click Check again after a moment.

  1. Choose new values from the lists.
  2. Click Save changes.
Setting Choices Default
Memory limit 128 MB to 1 GB 256 MB
Max execution time 30 to 600 seconds 300 seconds
Upload max filesize 32 MB to 1 GB 128 MB
Post max size 32 MB to 1 GB 128 MB
Max input vars 1,000 to 10,000 5,000
Max input time 30 to 600 seconds 300 seconds

A setting you have never changed shows a small Default label.

To accept bigger uploads, raise both Upload max filesize and Post max size. If the upload limit is higher than the post limit, the page warns you, because PHP refuses any upload bigger than Post max size. The web server’s own upload size and timeout limits follow these settings, so you don’t need to change anything else.

Depending on the server, the page can also show:

  • Page cache: Enabled or No page cache. See Caching and Redis.
  • HTTP Strict Transport Security: Enabled tells browsers to always use HTTPS for this website. Turn it on only when HTTPS works on every address the website uses.

These two apply as soon as you choose them.

If the website seems stuck, click Restart PHP-FPM at the top of the page, or Restart PHP in the website’s actions. Pages may pause for a moment while PHP restarts.

When you clone a website, create a staging copy or move a website to another server, its PHP settings go with it.