Ubuntu 修改 Apache2 用户组 方法

检查/etc/apache2/envvars文件,发现其中需要使用/etc/apache2/envvars文件中的以下几个环境变量

  export APACHE_RUN_USER=www-data

  export APACHE_RUN_GROUP=www-data

修改为:

  export APACHE_RUN_USER=与你系统的用户组同名

  export APACHE_RUN_GROUP=与你系统的用户组同名

与你系统的用户同名,避免Apache2 写入权限的问题

原文地址:https://www.cnblogs.com/fxmbz/p/4271052.html