PHP will exit with the following error if it takes more time than it's allowed to execute;

Fatal error: Maximum execution time of 30 seconds exceeded in yourscript.php

You don't have direct access to PHP's configuration file in cPanel hosting, but there are still a few ways that you can increase the maximum execution time for your PHP scripts.

This is because cPanel provides an interface on its dashboard for easy configuration of available PHP options.

Step-by-step video guide:

Steps to change maximum execution time for PHP in cPanel hosting:

  1. Log in to your cPanel dashboard.
  2. Go to the Software section and click on Select PHP Version.
  3. Click on Options tab.
  4. Scroll down and look for max_execution_time and click on the value field.
  5. Enter desired value in seconds and wait for the value to automatically be saved.
Discuss the article:

Comment anonymously. Login not required.