6

I keep on getting warning in my error logs:

(103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function 

Here is my fcgid.conf

<IfModule mod_fcgid.c>
SocketPath /var/lib/httpd/fcgid/sock
IdleTimeout 200
IdleScanInterval 200
ProcessLifeTime 1000
MaxProcessCount 1000
DefaultMinClassProcessCount 3
DefaultMaxClassProcessCount 100
IPCConnectTimeout 8
IPCCommTimeout 200
BusyTimeout 300
</IfModule>

The server serves up a 500 error once in a while, then is pretty speedy for a while, then serves up another 500 error... Is there anyway to stop this from happening?

keeg
  • 3,990
  • 8
  • 49
  • 97

1 Answers1

8

By default FastCGI processes exit after 500 requests. You can either raise PHP_FCGI_MAX_REQUESTS (in the wrapper) or limit FcgidMaxRequestsPerProcess to 500.

See http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#examples "Special PHP considerations"

flo
  • 96
  • 2
  • so `FcgidMaxRequestsPerProcess 500` would go into my fcgid.conf correct? – keeg Oct 02 '12 at 16:17
  • I'm not sure how your setup looks. To be safe insert it into the block. – flo Oct 03 '12 at 08:24
  • I must have a different setup I get `Invalid command 'MaxRequestsPerProcess'` – keeg Oct 03 '12 at 17:53
  • assuming mod_fcgid is loaded unconditionally in the httpd.conf: Can you add `FcgidMaxRequestsPerProcess` to your httpd.conf without any directive? – flo Oct 12 '12 at 07:21
  • Also, which version of mod_fcgid are you using? – flo Oct 12 '12 at 07:44