fcgi permissions according to script owner

Frank Church vfclists at gmail.com
Mon Aug 16 23:32:00 MSD 2010


On 16 August 2010 19:24, Piotr Karbowski <jabberuser at gmail.com> wrote:

> On 16.08.2010 19:24, Frank Church wrote:
>
>> On 16 August 2010 16:46, Piotr Karbowski<jabberuser at gmail.com>  wrote:
>>
>> Apache uses suexec to run the fastcgi under the user accounts permissions,
>> the script I am using the php-fcgi daemon in /etc/init.d?
>>
>
> I have no idea about what /etc/init.d/php-fcgi script you are talking. I
> guess it's distro specified script which use spawn-fcgi to spawn php.
>
>
>  Does nginx have the ability to do the same?
>>
>
> As I said, depends on what cgi you are talking about.
>
> Nginx don't have ability to run cgi itself, it can connect to listening php
> or any other fastcgi. If you are talking about php, you can use spawn-fcgi
> or php-fpm (better) to run php as specified user.
>
> So yes, you can have php script running as selected user.
>
> Your way of thinking has been distorted by apache's mod_php propably.
>
>
Apache suexec actually.

Googling has led me to the fact that different a separate php-fcgi can be
made to run on a separate port for each user. It isn't what I expected as it
has to be run manually for each user, but it is good enough for my needs.

PS. I posted an earlier thread about the problems I am having with an empty
$_REQUEST, $_GET and $_POST variables.  Can you help me with that?





>
> -- Piotr.
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



-- 
Frank Church

=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100816/ba6945f9/attachment.html>


More information about the nginx mailing list