mod_fcgid

[Sun Sep 19 17:52:59 2010] [warn] mod_fcgid: read data timeout in 31 seconds [Sun Sep 19 17:52:59 2010] [error] [client 192.168.2.101] Premature end of script headers: import.php, referer: http://localhost/padmin/db_import.php?db=geoip&server=1&token=0ff6423d80d5ab6f026210c6b05db805

where can I increase 30 second timeout?

I already added this to /etc/httpd/conf.d/fcgid.conf in y centos5.5 installation:

IdleTimeout 3600
ProcessLifeTime 7200
MaxProcessCount 1000
DefaultMinClassProcessCount 3
DefaultMaxClassProcessCount 100
IPCConnectTimeout 8
IPCCommTimeout 360
BusyTimeout 300

and I added this code in virtualhost directive also but it keeps saying in error_log about these 31 seconds…

Try this:

Go to Services > PHP 5 Configuration > Resource Limits set Maximum execution time to 0 (unlimited) or some high value e.g. 600.

Then go to Services > Configure Website and click Apply Changes.