<font color="#333399"><font>Well,<br><br>Following the advice of a friend, I made the Nginx user owner of the socket.<br>Guess what: it works!<br><br>I restricted the chmod to 0600 to be sure the group was involved.<br><br>
Now here is some questions:<br>Why can't we use the group right on the socket?<br>Why is it the owner user who only has an impact on the effectiveness of the rights?<br><br>The group is useless here... I am a little lost following that logic.<br clear="all">
</font></font><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font><br>
<br><br><div class="gmail_quote">On Wed, May 9, 2012 at 7:12 PM, B.R. <span dir="ltr"><<a href="mailto:reallfqq-nginx@yahoo.fr" target="_blank">reallfqq-nginx@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font color="#333399"><font>Hi,<br><br>I still don't get it...<br>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!<br>
<br>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.<br><br>If someone had an idea on this, I would be glad if he contributed!<br clear="all">
</font></font><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font><div class="HOEnZb"><div class="h5">
<br>
<br><br><div class="gmail_quote">On Wed, May 9, 2012 at 1:43 PM, B.R. <span dir="ltr"><<a href="mailto:reallfqq-nginx@yahoo.fr" target="_blank">reallfqq-nginx@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font color="#333399"><font>Hi Mark,<br><br>Since I don't have ACL installed, here is the output of all others commands:<br><br>$ sudo service php5-fpm restart<br>Restarting PHP5 FastCGI Process Manager: php5-fpm.<div>
<br><br>
$ date +%Y-%m-%d\ %H:%M:%S<br></div>2012-05-09 19:39:30<div><br><br>$ ls -ald /var /var/run /var/run/php-fpm.sock<br></div>drwxr-xr-x 16 root root 4096 21 nov. 17:10 /var<br>drwxr-xr-x 7 root root 4096 9 mai 19:39 /var/run<br>
srw-rw---- 1 www-data www-data 0 9 mai 19:39 /var/run/php-fpm.sock<br><br>$ groups nginx<br>nginx : www-data debian-transmission<br><br>$ groups www-data<br>www-data : www-data<div><br><br>$ ps aux | grep -F -e php -e nginx<br>
</div>
root 19448 0.0 0.0 30400 1164 ? Ss May08 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf<br>nginx 19449 0.0 0.0 30808 2104 ? S May08 0:00 nginx: worker process<br>
root 30316 0.0 0.1 108440 4252 ? Ss 19:39 0:00 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)<br>www-data 30317 0.0 0.0 108440 3788 ? S 19:39 0:00 php-fpm: pool www<br>www-data 30318 0.0 0.0 108440 3788 ? S 19:39 0:00 php-fpm: pool www<br>
(me) 30330 0.0 0.0 9616 832 pts/0 S+ 19:39 0:00 grep -F -e php -e nginx<br><br>I still don't get the problem...</font></font><br clear="all"><font size="1"><span style="color:rgb(102,102,102)">---<br>
</span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font><div><div><br>
<br><br><div class="gmail_quote">On Wed, May 9, 2012 at 1:32 PM, W-Mark Kubacki <span dir="ltr"><<a href="mailto:wmark+nginx@hurrikane.de" target="_blank">wmark+nginx@hurrikane.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div># (stop, then start php-fpm)<br>
# date +%Y-%m-%d\ %H:%M:%S<br>
# ls -ald /var /var/run /var/run/php-fpm.sock<br>
# getfacl /var/run/php-fpm.sock<br>
# groups nginx<br>
# groups www-data<br>
# ps aux | grep -F -e php -e nginx</div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>