Apache Nginx PHP 权限组设置

查看权限组

ps aux |grep apache
ps aux |grep nginx
ps aux|grep php-fpm
ps aux |grep mysql

php7设置文件

/etc/php/7.0/fpm/pool.d/www.conf
user = www
group = www

apache2.4设置文件

/etc/apache2/envvars
export APACHE_RUN_USER=www
export APACHE_RUN_GROUP=www

nginx设置文件

/usr/local/nginx/conf/nginx.conf
user  www www;

重启(ubuntu系统)

service apache2 restart
sudo systemctl restart php7.0-fpm
/usr/local/nginx/sbin/nginx -s reload    看安装目录