查错误日志, 发现apache启动时有提示:[notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
原来是SELinux的安全策略导致的。
临时方案:setenforce 0
永久方案:修改/etc/sysconfig/selinux:SELINUX=disabled 重启生效!
CentOS搭建apache,总是报错:(13)Permission denied: file permissions deny server access
标签:denied ons deny perm rmi post pac blog running
本文系统来源:https://www.cnblogs.com/blogzcan/p/8297500.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!