Knowledgebase

How to increase Max Excuetion time

  • 0

 

How to Increase Max Execution Time in cPanel

 

Increasing the max execution time in cPanel helps prevent timeout errors when running large scripts, importing files, or processing heavy website tasks. You can easily increase the execution time limit through the PHP Selector settings in cPanel by following the steps below.

 

Step 1: Login to cPanel from Client Area

 

First, login to your client area account.

After logging in:

  1. Go to Services
  2. Click on My Services
  3. Select your active hosting service
  4. Click on Login to cPanel

 

 

 

Step 2: Open Select PHP Version

 

After logging into cPanel:

  1. Scroll to the Software section.

 

 

 

  2. Click on Select PHP Version.

 

 

 

Step 3: Open PHP Options

 

Inside the PHP Selector page:

  1. Click on the Options tab.
  2. You will see various PHP configuration settings.

 

 

 

 

Step 4: Find the max_execution_time Option

 

Locate the setting called:

max_execution_time

This option controls how long a PHP script is allowed to run before it stops automatically.

 

 

 

 

Step 5: Increase the Max Execution Time Value

 

  1. Click on the current value beside max_execution_time.
  2. Change it to a higher value such as:
  • 300
  • 600
  • 1000
  1. The changes are usually saved automatically.

 

 

 

Step 6: Verify the Changes

 

Refresh the page and confirm that the new max_execution_time value is updated successfully.

 

Why Increase Max Execution Time?

 

Increasing the max execution time can help fix issues like:

  • Website timeout errors
  • Large file import failures
  • Backup restoration issues
  • Slow script processing
  • Plugin or theme installation problems

 

Conclusion

 

Increasing the max execution time in cPanel allows your website to handle long-running PHP processes more efficiently. You can easily update this setting through the PHP Selector options in cPanel.


Was this answer helpful?