Welcome! Log In Create A New Profile

Advanced

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

B.R.
May 10, 2012 06:34PM
Hi all again,

As my nginx package (gathered from the Debian Sqeeze repository @Nginx)
specified, the maintainer should be "Sergey Budnevitch" <sb@nginx.com>.
However, I got a mailer daemon saying the user doesn't exist...

How can I submit a bug to the Debian Squeeze Nginx package maintainer?
---
*B. R.*


On Wed, May 9, 2012 at 7:51 PM, B.R. <reallfqq-nginx@yahoo.fr> wrote:

> Well,
>
> Following the advice of a friend, I made the Nginx user owner of the
> socket.
> Guess what: it works!
>
> I restricted the chmod to 0600 to be sure the group was involved.
>
> Now here is some questions:
> Why can't we use the group right on the socket?
> Why is it the owner user who only has an impact on the effectiveness of
> the rights?
>
> The group is useless here... I am a little lost following that logic.
> ---
> *B. R.*
>
>
>
> On Wed, May 9, 2012 at 7:12 PM, B.R. <reallfqq-nginx@yahoo.fr> wrote:
>
>> Hi,
>>
>> I still don't get it...
>> I even tried to put the UNIX socket file inside a directory whose owner
>> group was the 'www-data' one... Still 'Permission denied' in the Nginx log
>> files!
>>
>> I reverted temporarily to the old way to bind Nginx with PHP-FPM, using
>> the standard TCP listening and restricting it to the local interface
>> through my firewall.
>>
>> If someone had an idea on this, I would be glad if he contributed!
>> ---
>> *B. R.*
>>
>>
>>
>> On Wed, May 9, 2012 at 1:43 PM, B.R. <reallfqq-nginx@yahoo.fr> wrote:
>>
>>> Hi Mark,
>>>
>>> Since I don't have ACL installed, here is the output of all others
>>> commands:
>>>
>>> $ sudo service php5-fpm restart
>>> Restarting PHP5 FastCGI Process Manager: php5-fpm.
>>>
>>>
>>> $ date +%Y-%m-%d\ %H:%M:%S
>>> 2012-05-09 19:39:30
>>>
>>>
>>> $ ls -ald /var /var/run /var/run/php-fpm.sock
>>> drwxr-xr-x 16 root root 4096 21 nov. 17:10 /var
>>> drwxr-xr-x 7 root root 4096 9 mai 19:39 /var/run
>>> srw-rw---- 1 www-data www-data 0 9 mai 19:39 /var/run/php-fpm.sock
>>>
>>> $ groups nginx
>>> nginx : www-data debian-transmission
>>>
>>> $ groups www-data
>>> www-data : www-data
>>>
>>>
>>> $ ps aux | grep -F -e php -e nginx
>>> root 19448 0.0 0.0 30400 1164 ? Ss May08 0:00 nginx:
>>> master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
>>> nginx 19449 0.0 0.0 30808 2104 ? S May08 0:00 nginx:
>>> worker process
>>> root 30316 0.0 0.1 108440 4252 ? Ss 19:39 0:00
>>> php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
>>> www-data 30317 0.0 0.0 108440 3788 ? S 19:39 0:00
>>> php-fpm: pool www
>>> www-data 30318 0.0 0.0 108440 3788 ? S 19:39 0:00
>>> php-fpm: pool www
>>> (me) 30330 0.0 0.0 9616 832 pts/0 S+ 19:39 0:00 grep -F
>>> -e php -e nginx
>>>
>>> I still don't get the problem...
>>> ---
>>> *B. R.*
>>>
>>>
>>>
>>> On Wed, May 9, 2012 at 1:32 PM, W-Mark Kubacki <wmark+nginx@hurrikane.de
>>> > wrote:
>>>
>>>> # (stop, then start php-fpm)
>>>> # date +%Y-%m-%d\ %H:%M:%S
>>>> # ls -ald /var /var/run /var/run/php-fpm.sock
>>>> # getfacl /var/run/php-fpm.sock
>>>> # groups nginx
>>>> # groups www-data
>>>> # ps aux | grep -F -e php -e nginx
>>>>
>>>
>>>
>>
>
_______________________________________________
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: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready