Problem
You see the following error message:
PHP Fatal error: Maximum execution time of 300 seconds exceeded in /path/to/file.php
Cause
The max_execution_time limit is too low for a specific task or operation. By default, WHMCS enforces a max_execution_time limit of 300 seconds for general requests.
Solution
This troubleshooting information only applies to self-hosted WHMCS installations.
Increase the max_execution_time limit by adding the following new line to your configuration.php file:
$overidephptimelimit = 500;
For more information on updating this file, see The configuration.php File.
Last modified: 2025 October 17