Articles on: Sites

Configure PHP

InstaWP allows you to Configure your WordPress site's PHP settings & limits in order to preserve your server's resources, to set limits on the max size of a file that can be uploaded or the max amount of memory that a script is allowed to allocate.


In this documentation, we will explore the steps to configure the website’s PHP settings & limits.


Let’s get started 🚀


How to Configure PHP



Go to the Sites **page, click on the **horizontal ellipsis button, and select the PHP Config option.


Note: The user can also access the PHP settings for their staging site by clicking on it directly.




A new window will appear, where you will find the PHP Config dialog, allowing you to configure the following PHP fields:


Fields

Description

PHP version

This shows you the current PHP version of your website, you can also change it according to your preference.

max_execution_time (seconds)

This sets the maximum time in seconds a script is allowed to run before it is terminated. The default is 30 seconds.

max_input_time (seconds)

This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET. This is usually increased to allow for larger file uploads. The default is 60 seconds.

max_input_vars

This sets the maximum number of variables your server can use for a single function. The default is 1000 value.

memory_limit (Mb)

This sets the maximum amount of memory in bytes that a script is allowed to allocate. The default is 128 Mb.

allow_url_fopen

This enables you to access the remote files using the FTP or HTTP protocol by toggling on/off.

post_max_size (Mb)

This sets the limit of the entire body of the request. The default is 256 Mb.

upload_max_filesize (Mb)

This sets a limit on the maximum size of a file that can be uploaded. The default is 256 Mb.

session.gc_maxlifetime (seconds)

This sets the login session length in seconds. The default is 1440 seconds.

output_buffering (bytes)

This holds the output data before sending it to the browser. The default is 4096 bytes.

pm.max_children (PHP worker)

This determines the maximum number of child processes that will be created to process PHP requests. The default is 2 PHP workers.




💡 Did you know - You could modify the default Configuration to automatically set PHP config values Learn about Configurations.

Updated on: 07/04/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!