How to Change PHP Settings (Max Execution Time, Max Upload Filesize, Memory Limit etc.)

How to Change PHP Settings (Max Execution Time, Max Upload Filesize, Memory Limit etc.)

There are times when you need to adjust your PHP settings for one or more of your domains in your hosting account. Some of the settings you may need to adjust are: max_execution_time, max_input_time, max_input_vars, memory_limit, and upload_max_filesize. Especially if you are using a PHP application such as WordPress. WordPress is a popular CMS (Content Management System) built in PHP. Since WordPress is built in PHP, the PHP settings in your hosting account can have an effect on the way your WordPress site functions. In this article, we will discuss How to Change the PHP Settings for your Account using the MultiPHP INI Editor.


How to Change your PHP Settings

Step 1. Login to cPanel

Step 2. Click on the ‘MultiPHP INI Editor‘ icon under the Software section.

change php settings for wordpress

Step 3. Select the domain name you wish to adjust the settings for from the drop-down list.

adjust php settings for wordpress

On the next page, you will see a list of PHP settings. The directives you will usually want to increase or adjust are:

    • max_execution_time

    • max_input_time

    • max_input_vars

    • memory_limit

    • upload_max_filesize

There is no special or magic number to increase the values to. Generally, you will want to start by making small adjustments and go from there. It is not recommended to increase these values to the maximum values as it can be a detriment to the security and performance of your Hosting account and sites. But making small adjustments is generally fine.

Note! If you need a baseline to work off of, try the following settings first then increase the values as needed from there:

    • max_execution_time = 500

    • max_input_time = 500

    • max_input_vars = 3000

    • memory_limit = 800M

    • upload_max_filesize = 800M


Step 4. Increase the necessary values as shown above then click ‘Apply‘ at the bottom of the page to apply your settings.

Remember to Clear the Server Cache and Browser Cache before confirming the changes. 


Note! Need to confirm your changes? You can create a phpinfo.php file which will output the current php settings for your hosing account. 

→ Click Here to View our Guide on How to Create a phpinfo.php File to View your PHP Settings


How useful was this post?

Let us know what you think!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Thanks for rating our post!

Don't forget to follow us on Facebook for more great tips.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?