How to Increase PHP Time Limit for a WordPress Site?
PreviousHow to change Color siteNextHow to fix the warning " Warning: Constant UXPER_... already defined in..."
Last updated
Was this helpful?
Last updated
Was this helpful?
The PHP Time Limit is the amount of time that your site will spend on a single operation before timing out. When an operation reaches the time limit set, then it will return a fatal error that looks like this:
The default value for PHP time limit on most hosts for the PHP Time Limit is 30 seconds. You can increase this limit by following any of the methods mentioned below.
Add the following to .htaccess (Make sure you back up .htaccess before you edit it):
php_value max_execution_time 3000
Add the following to wp-config.php:
set_time_limit(3000);
Add the following to php.ini:
max_execution_time = 3000
Read more about Maximum execution time exceeded on .