Articles on: Staging

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 🚀

Step 1: Sign In to your InstaWP account and you will navigate to its dashboard.



Step 2: Click on the Staging button from the top navigation bar.



Step 3: Click on the Three dots and select the PHP Config option from the dropdown list corresponding to the site for setting PHP.



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

FieldsDescription
PHP versionThis 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_varsThis 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_fopenThis 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.




Step 4: After configuring the preferred PHP values, click on the Save button from the bottom right corner of the interface.



Then, you will see a success message on your screen.



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

Updated on: 08/04/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!