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?