Re: [Mod-fcgid-users] mod_fcgi error: Premature end of script headers

2009-05-12 Thread Christian Rishøj


On 12 May 2009, at 01:08, Travers Carter wrote:


> 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


This nailed it. Thank you.

With best regards

Christian Rishøj

E: christ...@jetment.com 

smime.p7s
Description: S/MIME cryptographic signature
--
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


Re: [Mod-fcgid-users] mod_fcgi error: Premature end of script headers

2009-05-11 Thread Travers Carter
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


[Mod-fcgid-users] mod_fcgi error: Premature end of script headers

2009-05-11 Thread Christian Rishøj


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


  AddHandlerfcgid-script .fcgi
  AddHandler fcgid-script .php
  FCGIWrapper /usr/lib/cgi-bin/php5 .php
  IPCConnectTimeout 20


Any clue what is going on here?

Thanks,

With best regards

Christian Rishøj

T: +45 6130 0669
E: christ...@jetment.com

smime.p7s
Description: S/MIME cryptographic signature
--
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