PHP init script to go with nginx?

Davy Campano dcampano at gmail.com
Sat Jun 14 03:24:52 MSD 2008


I will ditto what Mike is saying here.  It took me about 20 minutes to get
PHP-FPM all setup and configured and running great.  I looked into the
spawn-fcgi script and found lots of people with major issues such as child
processes not respawning.

On Fri, Jun 13, 2008 at 7:05 PM, mike <mike503 at gmail.com> wrote:

> you can use google translate on the php-fpm site and it makes it
> understandable enough...
>
> the sample config file is in english anyway, so just download the
> patch, patch your php and then look at the example config file - you
> can setup multiple fastcgi pools (for instance one for each user/group
> for privilege separation - which is one of the biggest reasons I need
> it)
>
> I cannot emphasize it enough - PHP-FPM is -the- way to manage
> PHP/FastCGI. anything else is hokey and should be deprecated :) We
> need to get more exposure for PHP-FPM so more people are managing
> their FastCGI properly (also not to mention it helps mature/fix some
> FastCGI issues in PHP itself)
>
> On 6/13/08, Jauder Ho <lists at ruby-forum.com> wrote:
> >
> > php-fpm looks interesting (although there's quite a bit of what loooks
> > like russian =). I'll be checking it out.
> >
> > In the meantime, attached is what I use as an init script. Also, the
> > following is the default file to go with it.
> >
> > -------------------------------
> >
> > START=yes
> >
> > # Which user runs PHP? (default: www-data)
> >
> > EXEC_AS_USER=foo
> >
> > # Host and TCP port for FASTCGI-Listener (default: localhost:9000)
> >
> > FCGI_HOST=localhost
> > FCGI_PORT=9000
> >
> > # Environment variables, which are processed by PHP
> >
> > PHP_FCGI_CHILDREN=2
> > PHP_FCGI_MAX_REQUESTS=1000
> >
> > Attachments:
> > http://www.ruby-forum.com/attachment/2181/php-fastcgi
> >
> > --
> > Posted via http://www.ruby-forum.com/.
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080613/7e6e4c30/attachment.html>


More information about the nginx mailing list