php fastcgi support - how do u do it?

Marcos Neves marcos.neves at
Wed Jul 16 00:13:14 MSD 2008

When you say "You can setup a separate fastcgi pool for each user", you mean
system user?
Or is it possible with virtual users or something easier to manager like
virtualusers from pure-ftpd?
Using open_basedir for each user wouldn´t be enought?

Have PHP proccess runing outside the webserver is really a nice thing,
cause if it had any problem, only the php scripts will be affected ! :)

On Tue, Jul 15, 2008 at 4:58 PM, mike <mike503 at> wrote:

> On 7/15/08, Marcos Neves <marcos.neves at> wrote:
> > For a shared hosting, what are the advantages of php-fpm over mod_php?
> You can setup a separate fastcgi pool for each user. That way if their
> scripts get exploited, the only files they'll be able to mess with are
> that user.
> No more "www-data" or the webserver user owning every uploaded file on
> the system.
> Also, you'll be using FastCGI, not mod_php, which is tied in to the
> webserver. From the looks of it, based on Lighty, nginx, Zeus, etc...
> most people consider FastCGI the better method, since it does not tie
> up the webserver threads/processes/whatever with processing PHP. It
> should be more scalable. I think Litespeed's mod_php might work well
> too, but again - unless you can define a different uid/gid for each
> vhost and configure suEXEC how you want, different FastCGI pools is
> still the way to go.
> I'd say php-fpm is even more useful for shared hosting since you can
> easily define multiple pools (one for each user for instance) - that's
> how I use it right now. The other key benefit (apache-style process
> spawning) is coming soon, not quite finished yet. Between both of
> those, that takes care of my two key desires.

Marcos Neves
+55 44 3263-8132
+55 44 9918-8488
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list