I'am currently pulling my hairs out: After upgrading from Debian wheezy to jessie we get Apache mod_fcgid errors sometimes.
Current setup:
- Debian GNU/Linux 8.6 (jessie) / 3.16.0-4-amd64
- Apache/2.4.10 (Debian)
- PHP 5.6.29-0+deb8u1
Some of the Apache sites are just running fine and some sites are presenting a nice error 500 after several reloads. The Apache log shows
[fcgid:warn] [pid 23714] (104)Connection reset by peer: [client 123.456.789.12:53191] mod_fcgid: error reading data from FastCGI server
[fcgid:warn] [pid 23714] (104)Connection reset by peer: [client 123.456.789.12:53191] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
The strange thing is, that this error occurs only from time to time. As a user, I can just do a page reload again and everything is fine again. I know I'm not the first one with this error and I tried several things so far, but nothing helped.
What I already did:
- Setting
FcgidOutputBufferSize 0
in /etc/apache2/mods-available/fcgid.conf -> No difference - Stetting
PHP_FCGI_MAX_REQUESTS=99999
in the wrapper script -> No difference - Setting
FcgidMaxRequestsPerProcess 500
in /etc/apache2/mods-available/fcgid.conf -> No difference - Increasing
FcgidMaxRequestsPerProcess
to 3600 in /etc/apache2/mods-available/fcgid.conf -> No difference
Any ideas? Thanks in advance.
Martin