You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Scott (firstclasswatches.co.uk)" <sc...@firstclasswatches.co.uk> on 2015/01/12 15:44:20 UTC
[users@httpd] Re: mod_fcgid warnings (ap_pass_brigade failed in handle_request_ipc)
Also here is my mod_fcgid config:
LoadModule fcgid_module modules/mod_fcgid.so
MaxRequestsPerProcess 500
AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php5
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php4
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php3
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php2
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .phtml
<IfModule mod_fcgid.c>
# Max request (10 MB)
FcgidMaxRequestLen 10485760
# Max fcgi processes to open
FcgidMaxProcesses 20
# Limit process lifetime
FcgidMaxRequestsPerProcess 500
FcgidProcessLifeTime 3600
# Close idle processes after 60s
FcgidIdleTimeout 60
FcgidIdleScanInterval 30
FcgidZombieScanInterval 60
# Adjust default timeouts
FcgidIOTimeout 120
FcgidBusyTimeout 300
</IfModule>
Wrapper script:
#!/bin/sh
PHP_FCGI_MAX_REQUESTS=0
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php
Kind Regards,
Scott
First Class Watches
9 Warwick Road
Kenilworth
CV8 1HD
Warwickshire
United Kingdom
On 12 January 2015 at 14:26, Scott (firstclasswatches.co.uk) <
scott.lucas@firstclasswatches.co.uk> wrote:
> Hello,
>
> I am using mod_fcgid to serve PHP (not FPM) but no matter how I configure
> it I am still get a small number of errors from Apache (a few per hour) but
> nothing in my PHP syslog.
>
> They are all of the type ap_pass_brigade failed in handle_request_ipc and
> the main two I am seeing are:
>
> [fcgid:warn] [pid 3829:tid 140004003129088] (32)Broken pipe: [client
> xx.xx.xx.xx:xxx] mod_fcgid: ap_pass_brigade failed in handle_request_ipc
> function
>
> [fcgid:warn] [pid 3878:tid 140003940189952] (104)Connection reset by peer:
> [client xx.xx.xx.xx:xxx] mod_fcgid: ap_pass_brigade failed in
> handle_request_ipc function
>
> I have tried increasing the number of requests before expiry, increasing
> timeouts, setting PHP_FCGI_MAX_REQUESTS to 0 to avoid race condition, but
> nothing seems to work. I suspect the "Connection reset by peer" may mean
> the browser has cancelled the request but fcgid was already generating a
> response? Not sure about but the cause of "Broken pipe".
>
> Kind Regards,
>
> Scott
>
> First Class Watches
> 9 Warwick Road
> Kenilworth
> CV8 1HD
> Warwickshire
> United Kingdom
>