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:
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.
This post has already been read 5529 times!