1、查看apache安装版本
httpd -version;
rpm -qa httpd;
rpm -ql httpd #查看安装路径。
2、”Forbidden You don't have permission to access / on this server.“
查看目录可读性;
3、查看apache启动了哪些模块
apachectl -l
4、”httpd:Could not reliably determine the server‘s fully qualified domain name“
vi httpd.conf 修改#ServerName 为 ServerName localhost:80
5、启动httpd,端口监听,但链接打不开
关闭selinux: setenforce 0(暂时);
vi /etc/selinux/config 讲SELINUX=enforcing修改为SELINUX=disable;
清掉iptables: iptables -L(查看防火墙规则),iptables -F(清理规则);
阅读(755) | 评论(0) | 转发(0) |