LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   PHP-FPM creating directories as root despite being set as nginx (https://www.linuxquestions.org/questions/linux-server-73/php-fpm-creating-directories-as-root-despite-being-set-as-nginx-4175498792/)

fantasygoat 03-19-2014 04:57 PM

PHP-FPM creating directories as root despite being set as nginx
 
I have PHP-FPM running as the nginx user:

Quote:

listen.owner = nginx
listen.group = nginx
user = nginx
group = nginx
But the master process is running as root:

Quote:

root 25093 0.0 0.0 565252 8272 ? Ss 17:27 0:00 php-fpm: master process (/etc/php-fpm.conf)
nginx 25094 0.0 0.1 568672 23052 ? S 17:27 0:01 php-fpm: pool www
nginx 25095 0.1 0.1 568900 21960 ? S 17:27 0:02 php-fpm: pool www
And I suspect it's that one that is doing directory creation and setting the owner as root.

Does anyone have a solution to this permissions problem? Is there a way to get the master process to run as nginx as well?

pedor 03-21-2014 03:38 PM

Is listen.mode set to 0666 ?


All times are GMT -5. The time now is 03:05 PM.