How to solve “mod_fcgid: read data timeout in 40 seconds” in centos 5

In Centos 5 mod_fcgid version there is a bug that causes this error:

mod_fcgid: read data timeout in 40 seconds

in VirtualHosts regardless of the values of IPCCommTimeout and IPCConnectTimeout configured in /etc/httpd/conf.d/fcgid.conf.

On the net I found a solution which consists in inserting in every VirtualHost the parameters IPCCommTimeout IPCConnectTimeout, but for me it worked just inserting the following code ad first VirtualHost:

<VirtualHost *:80>
Include conf.d/virtualfcgi.conf

and editing mod_fcgi parameters in file /etc/httpd/conf.d/virtualfcgi.conf

<IfModule mod_fcgid.c>
IdleTimeout 3600
ProcessLifeTime 7200
MaxProcessCount 64
DefaultMaxClassProcessCount 8
IPCConnectTimeout 300
IPCCommTimeout 7200
BusyTimeout 300

This post is also available in: Italian

Leave a Reply

Your email address will not be published. Required fields are marked *