Chinaunix首页 | 论坛 | 博客
  • 博客访问: 130102
  • 博文数量: 25
  • 博客积分: 290
  • 博客等级: 二等列兵
  • 技术积分: 210
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-30 23:13
文章分类

全部博文(25)

文章存档

2015年(10)

2014年(7)

2011年(3)

2010年(1)

2008年(4)

我的朋友

分类: Web开发

2014-10-31 19:46:53

去除Apache默认页面 以及 日志报错 /var/log/httpd/error_log

Apache log:

后来在log中找到如下一行

Directory index forbidden by Options directive: /var/www/html/


google一下,采用了一个高人得建议,删除以下两个页面

rm -f /etc/httpd/conf.d/welcome.conf  ← 删除测试页

rm -f /var/www/error/noindex.html  ← 删除测试页

再次打开站点,又是报错“You don't have permission to access / on this server.”,关了iptables和selinux还是无果,于是动手重启apache,报错
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
唉,原来进程端口被占用
# ps -aux|grep httpd   //找到进程号
# kill -9  xx  //杀掉进程XX
# /usr/local/apache2/bin/apachectl -k start   //启动apache

启动成功,站点打开成功
阅读(3619) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~