Difference between revisions of "Maximum Execution Time"
From WHMCS Documentation
(Created page with "By default, WHMCS enforces a max_execution_time limit of 300 seconds for general requests. If this limit is too little for a given task or operation, you may encounter an err...") |
|||
Line 3: | Line 3: | ||
If this limit is too little for a given task or operation, you may encounter an error message that looks something like the following | If this limit is too little for a given task or operation, you may encounter an error message that looks something like the following | ||
− | < | + | <div class="source-cli"> |
PHP Fatal error: Maximum execution time of 300 seconds exceeded in /path/to/file.php | PHP Fatal error: Maximum execution time of 300 seconds exceeded in /path/to/file.php | ||
− | </ | + | </div> |
==Increasing the max_execution_time== | ==Increasing the max_execution_time== | ||
Line 11: | Line 11: | ||
If you wish to override the max execution time limit and increase it to a higher value, you can do so by adding the following line to your WHMCS configuration.php file: | If you wish to override the max execution time limit and increase it to a higher value, you can do so by adding the following line to your WHMCS configuration.php file: | ||
− | < | + | <div class="source-cli"> |
$overidephptimelimit = 500; | $overidephptimelimit = 500; | ||
− | </ | + | </div> |
Revision as of 10:36, 14 August 2017
By default, WHMCS enforces a max_execution_time limit of 300 seconds for general requests.
If this limit is too little for a given task or operation, you may encounter an error message that looks something like the following
PHP Fatal error: Maximum execution time of 300 seconds exceeded in /path/to/file.php
Increasing the max_execution_time
If you wish to override the max execution time limit and increase it to a higher value, you can do so by adding the following line to your WHMCS configuration.php file:
$overidephptimelimit = 500;