How to Increase PHP Time Limit for a WordPress Site?

January 23, 2024
1 min read

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.

Leave a Reply

Your email address will not be published.

About Me

Quo natum nemore putant in, his te case habemus. Nulla detraxit explicari in vim. Id eam magna omnesque.Quo natum nemore putant in, his te case habemus. Nulla detraxit explicari ...

Follow Me

Best Rated

8.3

WrightMic Microphone Review

Labore nonumes te vel, vis id errem tantas tempor. Solet quidam salutatus at quo. Tantas comprehensam te sea, usu sanctus similique ei.…

Banner

Popular

Authors

Previous Story

Free and Useful WordPress Plugins

Next Story

What is Bitcoin?

Latest from Blog

Yoga

Yoga Therapy The Yoga Therapy or ‘ yoga-chikitsa’ refers to the treatment of diseases by means of yogic exercises which may be physical or mental or both. It is a specialised form of yogic culture. This mode of treatment has been practised in India from very ancient times. Many references…

The Bus From London to Calcutta

Did you know between 1957 and 1976, there was a regular bus service between London and Calcutta, India.The 32,700km, 50 day, 2-way bus Route is the Longest in the world. The bus had sleeping bunks and even a kitchen! For just £145, you get to travel with food & accomodation.…

LIGHTHOUSES—The Steadfast Guardians of The Sea!

Lighthouses have been guiding sailors for centuries, and their role remains essential even in our modern age. Let’s illuminate the topic (pun intended) and explore how these beacons serve mariners: Warning Mariners of Danger:Lighthouses are strategically placed at critical points along coastlines, rocky shores, and near hazardous underwater features (like…

Unbeleivable Things About Iceland

1. Iceland has no mosquitoes. Despite the wet climate, Iceland is one of the few places in the world where mosquitoes are absent. 2. Iceland runs almost entirely on renewable energy. About 85% of the country’s energy comes from geothermal and hydroelectric sources, making it one of the greenest countries…
Go toTop