How To Increase Php Time Limit In Cpanel

How To Articles

Increasing the PHP time limit is an essential step when it comes to handling long-running scripts or processes in your website. This can be particularly helpful if you are encountering errors such as “Maximum execution time exceeded.” In this article, I will guide you through the process of increasing the PHP time limit in cPanel, and share some personal insights and tips along the way.

Accessing cPanel

To begin, you’ll need to access your cPanel account. Usually, you can do this by visiting “” and logging in with your credentials. If you are unsure of your cPanel login details, reach out to your web hosting provider for assistance.

Finding the PHP Configuration

Once you are logged in to cPanel, scroll down to the “Software” section and locate the “MultiPHP Manager” icon. Click on it to access the PHP configuration settings for your website.

Selecting the Desired PHP Version

In the MultiPHP Manager, you will see a list of domains associated with your cPanel account. Locate the domain for which you want to increase the PHP time limit and select the corresponding checkbox.

Next, click on the “PHP Options” button that appears above the domain list. This will open a new page with various PHP options.

Adjusting the PHP Time Limit

On the PHP options page, you’ll find a wide range of settings that you can customize. Look for the “max_execution_time” option, which determines the maximum time (in seconds) a PHP script is allowed to run.

Click on the value shown under the “max_execution_time” column, and enter a new value according to your requirements. It’s important to remember that the value you enter should be in seconds. For example, if you want to set the time limit to 60 seconds, enter “60” in the text field.

After updating the value, click on the “Apply” button to save your changes.

Testing the Changes

Once you have increased the PHP time limit, it’s always a good idea to test if the changes have taken effect. You can do this by running the script or process that was previously causing the “Maximum execution time exceeded” error. If the script now completes without any errors, you have successfully increased the PHP time limit.

Personal Insights and Tips

Increasing the PHP time limit can be beneficial in many situations, but it’s important to use it judiciously. Long-running scripts or processes can put a strain on your server’s resources and potentially impact the performance of your website.

Before increasing the PHP time limit, review your script or process and see if there are any optimizations or alternatives that can be implemented. For example, you may consider breaking a large task into smaller, manageable chunks or implementing asynchronous processing where applicable.

Additionally, it’s worth noting that changing PHP settings in cPanel may require sufficient permissions. If you do not have the necessary level of access, you may need to reach out to your web hosting provider or system administrator for assistance.


Increasing the PHP time limit in cPanel is a straightforward process that can help you overcome errors related to script execution time. By following the steps outlined in this article, you can easily adjust the PHP time limit to suit your specific requirements. However, it’s important to use this feature responsibly and consider alternative solutions whenever possible. Happy coding!