Title: Plugin auto upgrading and Max Script Execute Time
Last modified: August 19, 2016

---

# Plugin auto upgrading and Max Script Execute Time

 *  [johnvandam](https://wordpress.org/support/users/johnvandam/)
 * (@johnvandam)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-auto-upgrading-and-max-script-execute-time/)
 * Hi everyone!
 * This is not really a this-breaks-my-blog kinda thing, but…
    When I want to upgrade
   using the WP update function for NextGEN or Cforms it failes. After about 30 
   seconds I get a browser screen asking me where I want to save the update.php 
   file. I am on a hosted server and the PHP Max Script Execute Time is set to 30s.
   So I guess there is the problem.. I can’t change it though.
 * My question is this:
    If this is caused by the script exceeding 30s, is there
   any way to make wordpress cope with execution time problems more gracefully?
 * The plugins are not broken so I guess the downloading of the archives to the 
   server is the limiting part of the process, but I can imagine that update processes
   which get stuck in the next steps will get painful.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [darkstarfmc](https://wordpress.org/support/users/darkstarfmc/)
 * (@darkstarfmc)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-auto-upgrading-and-max-script-execute-time/#post-809415)
 * Hey John
 * You can increase your php scripts max execution time by adding the following 
   line of code to your php.ini file
 * > max_execution_time = 180
 * The php.ini file lists your custom php settings, and can be found in the root
   directory of your site.
 * Simply edit the file in wordpad or something similar, save, and upload, overwriting
   the file.
 * Good luck.
 *  Thread Starter [johnvandam](https://wordpress.org/support/users/johnvandam/)
 * (@johnvandam)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-auto-upgrading-and-max-script-execute-time/#post-809423)
 * Thanks Darkstarfmc!
 * As it is, the hosting service where my site is hosted isn’t keen on customers
   snooping around and changing any parameters. So no php.ini 🙁 or log files for
   that matter. They are cheap though, and it looks like I have very few server 
   downtime.
 * I found out that the plugins are actually installed even though the scripts runs
   into a “PHP Max Script Execute Time”. I suspect there are some wp-cron thingies
   going on in the background but I’m no php wiz and I’m to buzy with work to find
   out 🙂
 * All in all I am amazed that my plugins eventually get installed, so thumbs up
   to the wordpress team!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin auto upgrading and Max Script Execute Time’ is closed to new replies.

## Tags

 * [execution time](https://wordpress.org/support/topic-tag/execution-time/)
 * [upgrade](https://wordpress.org/support/topic-tag/upgrade/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [johnvandam](https://wordpress.org/support/users/johnvandam/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-auto-upgrading-and-max-script-execute-time/#post-809423)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
