How to Increase PHP Time Limit for a WordPress Site?

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:

Fatal error: Maximum execution time of xx seconds exceeded…
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.

Method 1: Edit file .htaccess:
Add the following to .htaccess (Make sure you back up .htaccess before you edit it):
php_value max_execution_time 3000

Method 2: Edit file wp-config.php:
Add the following to wp-config.php:
set_time_limit(3000);

Method 3: Editing php.ini
Add the following to php.ini:
max_execution_time = 3000
Read more about Maximum execution time exceeded on WordPress.org.

Milind G

Share
Published by
Milind G

Recent Posts

The Bus From London to Calcutta

Did you know between 1957 and 1976, there was a regular bus service between London…

7 months ago

LIGHTHOUSES—The Steadfast Guardians of The Sea!

Lighthouses have been guiding sailors for centuries, and their role remains essential even in our…

10 months ago

Venice Canals Cleaning – Svolte di Popolazi

In 1956, an extraordinary event took place in Venice, Italy, when the famous canals of…

10 months ago

Unbeleivable Things About Iceland

1. Iceland has no mosquitoes. Despite the wet climate, Iceland is one of the few…

11 months ago

Miyawaki Forests: A Green Revolution

The Miyawaki method is an afforestation technique developed by the late Japanese ecologist Akira Miyawaki in the early 1970s.…

11 months ago