Configuration for running fastcgi as different users

When I look at the nginx examples involving php-fastcgi or spawn-fcgi
running in /etc/init.d I get the impression that they are for the main
nginx
process running as the www-data user.

The CGI process linked to a port is also linked to a particular user.

Does that mean that if different users are to run their fastcgi in their
home folders with their own user permissions like Apache’s suexec a
separate fastcgi in /etc/init.d must be created for them?

The other point is the master user runs as the www-data user. Does this
mean
that all file permissions must be at must be readable by the ‘other’
user?

Is it possible to have multiple master processes running as different
users
on different ports, ie not just ‘user= www-data’ in the main nginx.conf
file, using different nginx.conf files concurrently?


Frank C.

=======================
http://devblog.brahmancreations.com

On Fri, Nov 5, 2010 at 6:15 PM, Frank C. [email protected] wrote:

Does that mean that if different users are to run their fastcgi in their
home folders with their own user permissions like Apache’s suexec a
separate fastcgi in /etc/init.d must be created for them?

i have a different port for each user for fastcgi under php-fpm and
forward from nginx as appropriate. other people do this, or use socket
files instead of tcp ports.

On 6 November 2010 01:33, Michael S. [email protected] wrote:


nginx mailing list
[email protected]
nginx Info Page

I take it that php-fpm eliminates the need for spawn-fcgi and
php-fastcgi
altogether?


Frank C.

=======================
http://devblog.brahmancreations.com

Yessir. It’s a complete solution and more robust in many other ways.