Submitted by mcrespo on Mon, 02/01/2010 - 22:20
Hi,
I'm getting these error on my virtualserver: adeatel.net
[Mon Feb 01 20:47:51 2010] [warn] mod_fcgid: read data timeout in 40 seconds
In the website options, my settings are:
Run CGI scripts as domain owner? Yes PHP script execution mode: FCGId PHP FCGId sub-processes: None Maximum PHP script run time Unlimited
How I can solve these problem, thanks
Status:
Active
Comments
Submitted by JamieCameron on Mon, 02/01/2010 - 23:15 Comment #1
Are you actually seeing broken web pages or errors when viewing that site? If not, this may just be a warning from mod_fcgid which can be ignored..
Submitted by mcrespo on Mon, 02/01/2010 - 23:44 Comment #2
YES, I get Error 500
Submitted by andreychek on Tue, 02/02/2010 - 12:54 Comment #3
It could be a sign that the PHP script is taking too long to respond or complete, if you're getting errors about a timeout after 40 seconds.
You may want to take a look at this thread here for some suggestions on what to do about it:
http://www.virtualmin.com/node/12661
If those suggestions don't help, you may consider changing this Virtual Server from FCGID to CGI in Server Configuration -> Website Options -> PHP script execution mode.
Submitted by RyanJohnson on Wed, 02/03/2010 - 00:21 Comment #4
What version of mod_fcgid is used in VM ?? is there a way to determine what's actually installed?
I just found this page and it suggests major changes to the variable names
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
I used to be able to set the variables globally, but now that no longer works...
The mod_fcgid package version on CentOS can be found with RPM:
rpm -q mod_fcgid
If it is our mod_fcgid package, it'll be 2.2, I think. If it is from some other source, then I wouldn't know.
Submitted by mcrespo on Wed, 02/03/2010 - 13:22 Comment #6
I fix it, adding these:
IPCConnectTimeout 20 IPCCommTimeout 3600
on the httpd.conf and in fcgi
and /conf.d/fcgid.conf
thanks, But I guess is a bug because in the virtualmin said that all the time limits are unlimited.
Submitted by JamieCameron on Wed, 02/03/2010 - 15:52 Comment #7
Ok, so it sounds like what Virtualmin should really do when the user selects "Unlimited" is set IPCCommTimeout to something really high, like 9999.
Submitted by RyanJohnson on Wed, 02/03/2010 - 16:08 Comment #8
It seems putting variables in /conf.d/fcgid.conf they are ignored by VirtualHosts.
You have to apply then to individual VirtualHosts. Can somebody confirm this? There must be some official documentation somewhere!?
Submitted by JamieCameron on Wed, 02/03/2010 - 16:11 Comment #9
Yes, from what I've seen those settings need to be at the <virtualhost> level.