FastCGI and PHP

Phillip B Oldham phill at
Wed Apr 2 11:08:57 MSD 2008

After the recent thread on php-fastcgi and memory leaks, I've realised 
that I'm a little unsure as to exactly how nginx and php-fastcgi 
communicate with one another. I'm wondering whether anyone could spare 
the time for clarification?

I understand that when started (in my case using spawn-fastcgi from the 
lighttpd project) php-fastcgi creates a master process and a number of 
child processes. Nginx then passes requests through to php-fastcgi, 
which processes the request and returns a response.

What I'm unsure on is whether nginx is passing the request directly to 
one of the child processes or the master process which then delegates.

I'm also unsure as to how nginx passes through the fastcgi params we 

The reason I ask is that I have some useful components written in Eiffel 
which I'd like to make available via a webserver. I've found a small 
fastcgi server written in Eiffel, which I'd like to expand on to 
replicate the kind of through-put the php-fastcgi instance I'm running 


*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