PHP init script to go with nginx?

Phillip B Oldham phill at
Fri Jun 13 15:36:55 MSD 2008

Stefanita Rares Dumitrescu wrote:
> you can just run php with lighttpd spawn-fcgi, and daemontools for 
> monitoring it. i find it rock solid.
I've had nothing but problems with that approach. From what I 
understand, there's a couple of bug in the spawn-fcgi binary, one with 
memory leaks and another with race-conditions occuring when the PHP 
child hits its upper limit of 250 requests at which point it is forced 
to restart; it still accepts requests even though its restarting and 
fails to complete. All we were seeing was regular 500 errors from lighty 
and semi-regular ones from nginx. Starting PHP with the -b switch fixed 
all those problems.

*Phillip B Oldham*
The Activity People
phill at <mailto:phill at>



This e-mail and its attachments are intended for the above named 
recipient(s) only and may be confidential. If they have come to you in 
error, please reply to this e-mail and highlight the error. No action 
should be taken regarding content, nor must you copy or show them to anyone.

This e-mail has been created in the knowledge that Internet e-mail is 
not a 100% secure communications medium, and we have taken steps to 
ensure that this e-mail and attachments are free from any virus. We must 
advise that in keeping with good computing practice the recipient should 
ensure they are completely virus free, and that you understand and 
observe the lack of security when e-mailing us.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: phill.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL: <>

More information about the nginx mailing list