You don't have permission to access server-status on this server.

来源:互联网 发布:淘宝双11什么意思 编辑:程序博客网 时间:2024/05/22 10:36

You don't have permission to access server-status on this server.

当我在安装apache2 后 使用service httpd status 出现You don't have permission to access server-status on this server.

我的系统是redhat enterprise 5, 后来晚上搜资料发现是selinux的问题,出于安全性的对系统进行了保护。

google一翻后,编辑/etc/sysconfig/selinx 设置SELINUX=disabled。

重启后就可以了。

原始地址:http://www.revsys.com/writings/quicktips/turn-off-selinux.html

 

chmod 755 -R /var/www