Skip to main content

How to Change PHP max_execution_time for a Domain in cPanel

You can increase the max_execution_time for a specific domain to allow scripts to run for a longer period before timing out. This is performed within the cPanel interface for the specific account associated with that domain.

You can increase the max_execution_time for a specific domain to allow scripts to run for a longer period before timing out. This is performed within the cPanel interface for the specific account associated with that domain.

Before you begin

You will need:

  • A cPanel account with permissions to manage the specific domain.

  • The domain name or the specific account associated with the domain.

Adjusting the PHP execution time

  1. Log in to your cPanel account.

  2. Locate the Software section and select Select PHP Version.

  3. Select the specific domain or account from the list.

  4. Click on the Options tab in the top menu.

  5. Locate the max_execution_time setting in the list.

  6. Click the value next to max_execution_time and enter the desired number of seconds.

  7. The system saves these changes automatically.

Confirm the result

  • The new value will remain visible in the Options list under the Select PHP Version tool.

  • Scripts on the domain will now be permitted to run for the duration specified by the new value.

Limitations

The maximum value you can enter may be limited by your specific hosting plan or the server's global configuration. If the script still times out after increasing this value, the issue may be related to a different PHP limit or a server-side resource restriction.

Did this answer your question?