I am facing that error while installing Jet pack plugin on my WordPress localhost site. i have search on this site many answer but that not fulfill my requirement
-
Something gets stuck when you run the installation script. Disable all plugins before installing Jetpack. If that doesn't help, try [increasing the maximum execution time](http://stackoverflow.com/questions/1263680/maximum-execution-time-in-phpmyadmin). – Hexaholic Aug 25 '15 at 07:54
-
@Hexaholic i have disable all my plugin but again that same error occurred – Shah Rukh Aug 25 '15 at 14:23
6 Answers
Please
- locate the file
[XAMPP Installation Directory]\php\php.ini
(e.g.C:\xampp\php\php.ini
) - open
php.ini
in Notepad or any Text editor - locate the line containing
max_execution_time
and - increase the value from 30 to some larger number (e.g. set:
max_execution_time = 90
) - then restart Apache web server from the XAMPP control panel
If there will still be the same error after that, try to increase the value for the max_execution_time
further more.

- 813
- 5
- 7
-
it doesn't work by the way the Error was atal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\wordpress\wp-includes\class-http.php on line 1610 – Shah Rukh Aug 28 '15 at 14:39
-
@Raphael your solution does work. I encountered the same problem and solved it by increasing the maximum execution time to 180. There is an easier way to do it though:
Open the Xampp control panel
Click on 'config' behind 'Apache'
Select 'PHP (php.ini)' from the dropdown -> A file should now open in your text editor
Press ctrl+f and search for 'max_execution_time', you should fine a line which only says
max_execution_time=30
Change 30 to a bigger number (180 worked for me), like this:
max_execution_time=180
Save the file
'Stop' Apache server
Close Xampp
Restart Xampp
'Start' Apache server
Update Wordpress from the Admin dashboard
Enjoy ;)

- 49,934
- 160
- 51
- 83

- 571
- 4
- 7
-
Steps to follow, straight forward, somebody get this man/woman a drink! – Sprose Sep 06 '18 at 19:46
-
I was doing this for local development, running on IIS. I found my php.ini file in C://php (where I installed PHP). Then I restarted IIS. – Sprose Sep 06 '18 at 19:51
-
1
I solved this issue to update .htaccess
file inside your workspace (like C:\xampp\htdocs\Nayan\.htaccess
in my case).
Just update or add this
php_value max_execution_time 300
line before# END WordPress
. Then save the file and try to install again.
If the error occurs again, you can maximize the value from 300
to 600
.

- 56
- 6
If you are simply testing a local dev version of WordPress as I was an hitting timeouts when WordPress tries to update itself you can always disable updates for your local version like so: https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-updates-in-wordpress/
Don't do this for a production site!

- 13,144
- 12
- 92
- 130
Find file:
[XAMPP Installation Directory]\php\php.ini
- open
php.ini
. - Find
max_execution_time
and increase the value of it as you required - Restart XAMPP control panel

- 17,954
- 24
- 89
- 100
If you want modify the limit for a single script, you may try to change that limit at runtime:
ini_set('max_execution_time', 300);

- 898
- 7
- 24