How to Increase PHP maximum execution time

WordPress is written using PHP scripting. To protect web servers from abuse, there is a time limit set for how long a PHP script can run. Often, Hosting providers have set up these values.

When the script reaches the desired value, it generally throws maximum execution time exceeded error. This maximum execution time exceeded error is nothing but a Fatal error.

Although, fixing this error is relatively simple. In this guide, I will tell you how you can easily fix the problem.

1. Increase PHP maximum execution time using .htaccess

edit .htaccess file
edit .htaccess file

Add the following code:

php_value max_execution_time 300

Through this code, you are simply gonna increase maximum execution time to 300 seconds. You can set this value as you want.

  • Now, check by reloading that blank page. Your content will appear back to normal.

2. Increase PHP maximum execution time using php.ini

You can also increase PHP maximum execution time by modifying a php.ini file on your server.

edit php.ini file
edit php.ini file

Simply add the code below:

max_execution_time = 300

3. Increase PHP maximum execution time using Plugin:

There is also a plugin available to ease this task.

WP Maximum Execution Time Exceeded:

WP Maximum Execution Time Exceeded
WP Maximum Execution Time Exceeded

The plugin works by adding and deleting the necessary code to the .htaccess file. Meanwhile, using this plugin, you don’t need to delete the files to remove the code.

Note: Before installation, take a complete backup of your website.

  • Now, from Dashboard >> Plugins >> Add New >> WP Maximum Execution Time Exceeded.
  • Install and Activate the plugin.

That’s it.

Conclusion:

Hence, you have successfully increased PHP maximum execution time in WordPress. I hope, you find this guide helpful. Let me know in the comment section below.

ALSO READ

Subscribe to our newsletter

To be updated with all the latest news, offers and special announcements.

Comment Policy: Your words are your own, so be nice and helpful if you can. Please, only use your real name and limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

GET STARTED

Start WordPress Blog: Ultimate Guide For Beginners

Here is our step by step guide for beginners to start a WordPress blog.

Top 6 Best WordPress Theme Frameworks

There are many websites themes which are created by using a framework. Likewise, WordPress Theme frameworks also becoming so popular. The framework allows you...

The Most Essential WordPress Plugins

Here, I have listed some excellent plugins which will surely add more features and new functionality to your WordPress blog.

Tips to Speed Up WordPress Performance

Here, I am sharing some tips to speed up WordPress performance. All you need to modify .htaccess file on your server and add some plugins.

The Ultimate Guide to Harden WordPress Security

Learn how to improve WordPress security. Here are some basic security concepts that will help you to harden WordPress security.

How to Setup CloudFlare Free SSL for WordPress Blog

Google has announced that they will count HTTPS as a ranking factor which means if you using HTTPS you will get a higher position...

DEALS

WP Rocket

Get 35% discount on WP Rocket plugin Now!

POPULAR NOW

Get almost 100% PageSpeed on Newspaper theme

The newspaper theme is the most popular premium theme for a self-hosted WordPress blog. The theme is developed by team tagDiv. You...

How to Remove jQuery Migrate in WordPress?

jQuery Migrate greatly simplifies the process of moving older jQuery code to a higher jQuery version by identifying deprecated features. It then restores deprecated...

How to increase internal storage on Xperia C

Hey, through this tutorial I am gonna tell you how to increase internal storage on Xperia C. Increasing internal storage will give you 1.98...

How to Display Featured Image Before or After Entry Title in Genesis

Learn how to add featured image to a single post or a page in Genesis child themes. You can set it to display featured...

Enable Google Analytics eCommerce tracking in WordPress

Learn more about your customer and their behavior by enabling Google Analytics eCommerce tracking for your WordPress eCommerce site.

How to setup CloudFlare CDN for WordPress blog

In today's world website speed is a crucial element to getting good ranks on the web. Website speed also aids for indexing your site...