【发布时间】:2014-09-12 09:12:28
【问题描述】:
尽管在 /etc/apache2/envvars 中设置为 www-data,但我的服务器似乎以 root 身份运行 apache2。
怎么会这样?
-
/etc/apache2/envvars
导出 APACHE_RUN_USER=www-data 导出 APACHE_RUN_GROUP=www-data
这是我的检查方法
How do I figure out what user & group Apache is running as?
ps axo user,group,comm | grep apache
root root apache2
root root apache2
root root apache2
root root apache2
root root apache2
root root apache2
root root apache2
【问题讨论】:
标签: apache