mod_cgi for nginx - anyone?

Jim Ohlstein jim.ohlstein at
Sun Feb 8 19:48:32 MSK 2009

OK, I'm sure that I'm missing something, but I'm having trouble getting more than one instance going.

I tried

# /usr/local/bin/spawn-fcgi -C 5 -a -p 10000 -u nobody -g nobody -f /usr/local/bin/fcgiwrap but only saw one instance generated.


Do you have a sample script to start it with "X" number of children

> -----Original Message-----
> From: owner-nginx at [mailto:owner-nginx at] On Behalf Of
> Grzegorz Nosek
> Sent: Sunday, February 08, 2009 7:57 AM
> To: nginx at
> Subject: Re: mod_cgi for nginx - anyone?
> On Sat, Feb 07, 2009 at 09:50:47PM -0500, Jim Ohlstein wrote:
> > I'm currently testing this with PHPmotion and it works perfectly
> using spawn-fcgi to get it started. Now I need to update the code to
> get Nginx upload progress bar in there as the one that comes with the
> scrip is meant for (cr)apache.
> >
> > I was wondering, Grzegorz, if there is some "algorithm" as to how to
> determine the optimal number of children to run.
> Basically, the number of concurrent CGI requests you wish to serve and
> then some (a single fcgiwrap does not multiplex multiple requests yet,
> sorry). It's actually better to have a few slack ones (they are really
> _very_ cheap, especially after the first one -- double-digit
> _kilo_bytes).
> Best regards,
>  Grzegorz Nosek

More information about the nginx mailing list