Welcome! Log In Create A New Profile

Advanced

Re: Nginx + PHP-FPM: Permissions on UNIX socket

Edho Arief
May 11, 2012 12:16PM
On Fri, May 11, 2012 at 11:08 PM, B.R. <reallfqq-nginx@yahoo.fr> wrote:
> OK, thanks Sergey!
> That seemed to be a gross bug, I am glad to know that's only my mistake. :o)
>
> What do you mean by 'add www-data as supplementary group to nginx user'?
> At the moment, nginx has www-data as its primary group.
>
> - Can it work if I don't specify any group in the Nginx config file (default
> group seems to be nobody, not any nginx user groups)?
> - Or should I always specify a group in the configuration, even if the nginx
> user already belongs to it?
> ---

It's weird, I certainly have no problem with such setup.

$ ls -l .php.sock-*
srw-rw---- 1 bacchanallia www-data 0 May 9 12:27 .php.sock-bacchanallia=
srw-rw---- 1 edho www-data 0 May 9 12:27 .php.sock-edho=
srw-rw---- 1 genshiken www-data 0 May 9 12:27 .php.sock-genshiken=
$ id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data)
$ id edho
uid=1000(edho) gid=1000(edho)
groups=1000(edho),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev)
$ ps axuw|grep nginx
root 32448 0.0 0.0 65424 640 ? Ss Apr30 0:00
nginx: master process /usr/sbin/nginx
www-data 32449 0.0 0.3 65828 3348 ? S Apr30 0:59
nginx: worker process
www-data 32450 0.0 0.4 65572 4768 ? S Apr30 0:57
nginx: worker process
www-data 32451 0.0 0.5 66320 5844 ? S Apr30 1:02
nginx: worker process
www-data 32452 0.0 0.3 65428 3420 ? S Apr30 0:59
nginx: worker process
www-data 32453 0.0 0.4 66324 4356 ? S Apr30 1:01
nginx: worker process
$

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx + PHP-FPM: Permissions on UNIX socket

B.R. May 08, 2012 11:56AM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

W-Mark Kubacki May 09, 2012 01:34PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

B.R. May 09, 2012 01:46PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

B.R. May 09, 2012 07:14PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

B.R. May 09, 2012 07:54PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

B.R. May 10, 2012 06:34PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

Steve May 10, 2012 07:20PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

B.R. May 10, 2012 09:16PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

Steve May 10, 2012 09:36PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

Sergey Budnevitch May 11, 2012 12:32AM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

Sergey Budnevitch May 11, 2012 01:26AM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

B.R. May 11, 2012 12:10PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

Edho Arief May 11, 2012 12:16PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

B.R. May 11, 2012 12:26PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

Edho Arief May 11, 2012 12:58PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

B.R. May 11, 2012 01:42PM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

Sergey Budnevitch May 12, 2012 08:58AM

Re: Nginx + PHP-FPM: Permissions on UNIX socket

B.R. May 12, 2012 12:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready