(前提是有apache这个用户)
在终端中输入:
setfacl -m u:apache:rwx -R www文件所在路径/www
setfacl -m d:u:apache:rwx -R www文件所在路径/www
修改Apache配置文件httpd.conf中的字段为:
User apache
Group apache