Executar nginx & php-fpm como www: www
1. Nginx
Edite nginx.conf e defina usuário como www www;
If the master process is run as root, then nginx will setuid()/setgid() to USER/GROUP. If GROUP is not specified, then nginx uses the same name as USER. By default it's nobody user and nobody or nogroup group or the --user=USER and --group=GROUP from the ./configure script.
2. PHP-FPM
Edite o php-fpm.conf e defina o usuário e o grupo como www
.
user - Unix user of processes. Default "www-data"
group - Unix group of processes. Default "www-data"