Script timeouts

I have some users trying to update a Wordpress site (plugins and CMS) using the automatic update feature but the update script constantly times out.

Increasing the Server Configuration > Website Options > Maximum PHP script run time value and restarting Apache has no effect as the script times out at 31 seconds.

I've also tried editing the PHP config and increasing both the parsing and execution times, but again, with no luck.

The site is running FCGId, though I've also tried switching to CGI wrapper.

Am I missing something?

Chris

Status: 
Closed (fixed)

Comments

What error message are they getting exactly, and what gets logged to the domains logs/error_log file?

The domain's error log reads:

[warn] mod_fcgid: read data timeout in 31 seconds
[warn] (110)Connection timed out: mod_fcgid: ap_pass_brigade failed in handle_request function

Ok, I think I figured it out. The site in question also runs in SSL. Changing the max script run time does not affect this site. Perhaps this is because I manually added the secure site because I could not install a shared cert in virtualmin to a new site (though valid on the shared cert). Something about an error that there is already a site on that port using SSL - weird...

Anyway, looking through the .conf file for this site I noticed that IPCCommTimeout is 31 for the SSL site but a different value for the standard site.

Chris

Ok, that would explain it - if you enabled SSL manually, Virtualmin won't know about the VirtualHost block on port 443, and so won't update the IPCCommTimeout directive in it. Change that manually and restart Apache, and you should be good ..

Yep, that did the trick.

Thanks

Automatically closed -- issue fixed for 2 weeks with no activity.