Categories: Wordpress Support

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 

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 = 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 6097 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.

Share
Published by
Mehedi Hasan
Tags: Wordpress

Recent Posts

WP Share A Friend – A Way to Capture Lead

What is Lead Capture: In general sense lead capture designates a process or way of…

5 years ago

Unlimited Modal POPUPS on MouseClick

Introduction Unlimited Modal POPUPS on MouseClick: Everyone knows about popup during site visits and most…

5 years ago

WordPress Pregnancy Calculator Plugin

Brief about Pregnancy Calculator : This WordPress Pregnancy Calculator plugin allows users to display an…

5 years ago

Interactive Service Plugin with Hover Effects VC

Introduction About this Service Plugin: This Visual Composer Service Plugin works as an addon to…

6 years ago

WP Dynamic Query String

Introduction of Dynamic Query String : This plugin allows user to set dynamic query string…

6 years ago

How to make scroll PDF in iFrame for iPAD Safari

There is an occasional bug for iPhone and iPad even they are designed as well and…

7 years ago