Skip to content

Configure PHP ​

InstaWP lets you change your WordPress site's PHP version and PHP settings from the dashboard. Use it to raise the memory limit for a heavy plugin, allow larger file uploads, give long-running scripts more time, or switch to a newer PHP version.

Let's get started 🚀

Open PHP Config ​

  1. Go to the Sites page and click the name of the site you want to configure.
  2. In the site menu on the left, expand Developer Tools and click PHP Config.

The site menu in the InstaWP dashboard with Developer Tools expanded and PHP Config highlighted

The PHP configurations page opens. The badge next to the title tells you where the values on screen came from:

BadgeMeaning
Live from serverThe values were read from your site's server just now, so they match what the site is actually running.
Last saved valuesThe server couldn't be reached, so the page shows the values InstaWP last saved for the site.

Change the PHP version ​

Open the PHP Version dropdown and pick the version you want, then click Save.

The PHP Version dropdown open on the PHP configurations page, listing the available PHP versions

📌 Note: The PHP versions offered here depend on the WordPress version InstaWP has on record for the site. If a version you expect is missing, refresh the site's WordPress version and check again.

Change PHP settings ​

Edit the values you need, then click Save at the bottom of the card. Hover the ⓘ icon next to any setting to see what it does.

The PHP configurations page showing the PHP Version dropdown, each PHP setting with its current value, and the Save button

SettingWhat it doesAllowed range
max_execution_time (seconds)Maximum time a script can run before it times out.30 to 300
max_input_time (seconds)Maximum time PHP waits for input data (POST, GET and file uploads).60 to 120
max_input_varsMaximum number of input variables allowed in a single request. Raise it if large menus or settings pages don't save completely.1000 to 10000
memory_limit (MB)Maximum memory a single script can use.64 to 1024
allow_url_fopenAllows PHP to open remote files and URLs with fopen(). Toggle it on or off.On or Off
post_max_size (MB)Maximum size of the whole body of a POST request. Keep it equal to or larger than upload_max_filesize.64 to 512
upload_max_filesize (MB)Maximum size of a single uploaded file.64 to 512
session.gc_maxlifetime (seconds)How long session data is kept before it is cleaned up.1440 to 14400
output_buffering (bytes)Size of the output buffer PHP fills before sending data to the browser.0 to 10000

If you enter a value outside the allowed range, the change isn't saved and InstaWP shows an error. Adjust the value and click Save again.

Settings managed by your plan ​

Some plans set a PHP value above the range you can choose yourself, for example a higher memory limit. Those settings show a Managed by your plan label and can't be edited. Hover the label to see the value your plan applies.

📌 Note: PHP workers are set by your site's plan, so they don't appear on this page. To get more PHP workers, upgrade the site to a higher plan.

Plan requirement ​

PHP Config is available on the Sandbox plan and higher. On a site without one of these plans, the page is locked and shows an upgrade prompt instead.

| 💡 Did you know: You can save PHP settings in a Configuration so new sites are created with them automatically. Learn about Configurations.

Docs are open. Edit them on GitHub. Built with VitePress.