How to solve “Maximum execution time of 30 seconds exceeded” in WordPress

During update or installing themes or plugin in WordPress we face this problem if the time limit set very low from PHP.INI file. But there are few ways to increase this execution time for an initiated process. You may can increase that by adding a line in wp-config.php or HTACCESS or php.ini file hosted on your web server. There is no need to make all three changes as any one of these works fine.

Meaning that, it is up to your convenience to choose any one of these three ways to increase the set maximum execution time for your server. For WordPress, it is much easier to do that by changing Wp-config.php file which is available in the root of the installation.

1. Code in wp-config.php 

set_time_limit

Put this below code at the top of the file:

set_time_limit(300);

2. In .htaccess file

put his code in your .htaccess file at the top:

php_value max_execution_time 300

3. In you “php.ini” file

This is the most accurate way if you can find your php.ini file in your server. When you open this file through notepad, search (CTRL+F5) and find “max_execution_time” (without quotes) and replace the value to your suitable time. Make 300 seconds which goes to 300/60= 5 minutes

max-execution-time

max_execution_time = 300 ;

Hope out of these solution you can find your way to make it out. Still if you face any trouble please make a comment here.
Thanks.

This post has already been read 4585 times!

Mehedi Hasan

Cool WordPress Developer having much agile experience to develop any kind of WordPress sites & plugins. Also good in troubleshooting, fixing & making any kind of tweaks for WP site.

More Posts

Mehedi Hasan

Cool WordPress Developer having much agile experience to develop any kind of WordPress sites & plugins. Also good in troubleshooting, fixing & making any kind of tweaks for WP site.

One thought on “How to solve “Maximum execution time of 30 seconds exceeded” in WordPress

  • July 4, 2014 at 5:07 pm
    Permalink

    This article is very informative that really helps me. Please carry on & post regularly to get good article from your ends. Thanks

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *