On Mon, 11 May 2009 08:49:29 pm Christian Rishøj wrote:
> Hi,
>
> Since switching to mod_fcgid, our production server periodically
> throws a 500-error when handling a PHP-backed request.
>
> The Apache error log shows:
>
> [Mon May 11 11:26:40 2009] [warn] (104)Connection reset by peer:
> mod_fcgid: read data from fastcgi server error.
> [Mon May 11 11:26:40 2009] [error] [client 195.215.203.98] Premature
> end of script headers: page.php
>
> We're running Apache 2.2.9 with the worker MPM and mod_fcgid 2.2 on
> Ubuntu 8.10.
>
> mod_fcgid configuration follows:
>
> LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so
>
>
>AddHandler fcgid-script .fcgi
>AddHandler fcgid-script .php
>FCGIWrapper /usr/lib/cgi-bin/php5 .php
>IPCConnectTimeout 20
>
>
> Any clue what is going on here?
By default php exits after handling 500 requests per process in fastcgi mode,
and there is a race condition when that happens, see the end of
http://fastcgi.coremail.cn/doc.htm and try adding the following to your config:
MaxRequestsPerProcess 500
> Thanks,
>
> With best regards
>
> Christian Rishøj
>
> T: +45 6130 0669
> E: christ...@jetment.com
--
Travers Carter - Noggin - http://www.noggin.com.au
Ph: +61 2 9219 8800 Fax: +61 2 9280 4669
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users