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 🚀

Step 1: Sign In to your InstaWP account and you will be navigated to the dashboard.

Step 2: Click on the More actions button 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:

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. (only premium users can configure).
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. (only premium users can configure).
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. (only premium users can configure).
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.

Step 3: 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.

Increase Memory Limit
Customize Configuration

Updated on: 20/09/2023

Was this article helpful?

Share your feedback


Thank you!