LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1444|回复: 8

apache error_log 请大家看看

[复制链接]
发表于 2007-3-26 17:15:08 | 显示全部楼层 |阅读模式
[Mon Mar 26 16:37:41 2007] [notice] caught SIGTERM, shutting down
[Mon Mar 26 16:37:42 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 26 16:37:42 2007] [notice] Digest: generating secret for digest authentication ...
[Mon Mar 26 16:37:42 2007] [notice] Digest: done
[Mon Mar 26 16:37:43 2007] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Mon Mar 26 16:37:43 2007] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Mon Mar 26 16:37:48 2007] [error] [client 192.168.0.101] (13)Permission denied: access to /index.php denied
[Mon Mar 26 16:37:48 2007] [error] [client 192.168.0.101] (13)Permission denied: access to /index.html denied
[Mon Mar 26 16:37:48 2007] [error] [client 192.168.0.101] (13)Permission denied: access to /index.html.var denied
[Mon Mar 26 16:39:34 2007] [error] [client 192.168.0.101] (13)Permission denied: access to /index.php denied
[Mon Mar 26 16:39:34 2007] [error] [client 192.168.0.101] (13)Permission denied: access to /index.html denied
[Mon Mar 26 16:39:34 2007] [error] [client 192.168.0.101] (13)Permission denied: access to /index.html.var denied
[Mon Mar 26 16:39:34 2007] [error] [client 192.168.0.101] (13)Permission denied: access to /favicon.ico denied
[Mon Mar 26 16:39:41 2007] [error] [client 192.168.0.101] (13)Permission denied: access to /index.php denied
[Mon Mar 26 16:39:41 2007] [error] [client 192.168.0.101] (13)Permission denied: access to /index.html denied
[Mon Mar 26 16:39:41 2007] [error] [client 192.168.0.101] (13)Permission denied: access to /index.html.var denied
以上是/var/log/httpd/error_log文件的一部分


在我配置完DNS和samba以及apache后一切正常。前面都成功了,访问网站www.santoday.cn都是正常。而且mysqld 也启动正常,只是中间我在设置mysqladmin -u root password 的时候把root换成了santoday(新建的用户) 。在这之前全部正常。后来我安装openwebmail。输入mail.santoday.cn/cgi-bin/openwebmail/openwebmail.PL用户登录界面都出来了,但是直接访问mail.santoday.cn的时候一直
提示:You don't have permission to access /mail/index.php on this server.
我在网上找遍了所有资料都没解决故障。而且在访问www.santoday.cn的时候也是上面提示没有权限。

我发现以下几点不明白对不对。请大家帮忙看看,我ping www.santoday.cn 时出来的信息是这样:
[root@santoday openwebmail]# ping www.santoday.cn
PING www.santoday.cn (192.168.0.101) 56(84) bytes of data.
64 bytes from mail.0.168.192.in-addr.arpa (192.168.0.101): icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from mail.0.168.192.in-addr.arpa (192.168.0.101): icmp_seq=2 ttl=64 time=0.032 ms
64 bytes from mail.0.168.192.in-addr.arpa (192.168.0.101): icmp_seq=3 ttl=64 time=0.033 ms

[root@santoday openwebmail]# host 192.168.0.101
101.0.168.192.in-addr.arpa domain name pointer www.0.168.192.in-addr.arpa.
101.0.168.192.in-addr.arpa domain name pointer mail.0.168.192.in-addr.arpa.
101.0.168.192.in-addr.arpa domain name pointer bbs.0.168.192.in-addr.arpa.
101.0.168.192.in-addr.arpa domain name pointer ftp.0.168.192.in-addr.arpa.
上面ping时为什么不是www.0.168.192.in 而是mail.0.168.192呢 我的dns应该对呀 我也检查过。

出现问题后我把之前的httpd.conf文件还原回去,故障依旧!我的httpd.conf文件内user和组都是apache. 我也chmod 755 /var/www/html(存放网页的目录了)

请教高手帮我分析原因看看,在此谢过了!
 楼主| 发表于 2007-3-26 18:44:53 | 显示全部楼层
高手都没有遇到这样的问题吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-26 21:04:25 | 显示全部楼层
操作系统是Linux santoday.cn 2.6.18-8.el5xen #1 SMP Fri Jan 26 14:29:35 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
redhat rhel 5.0的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-26 21:28:46 | 显示全部楼层
呵呵! 配置sendmail+squirrelmail 成功了。原来问题出在网址上面,应该是mail.santoday.cn/webmail  这个配置比openwebmail简单多了。还需要就是怎么管理小松鼠。继续学下去。

root@santoday openwebmail]# ping www.santoday.cn
PING www.santoday.cn (192.168.0.101) 56(84) bytes of data.
64 bytes from mail.0.168.192.in-addr.arpa (192.168.0.101): icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from mail.0.168.192.in-addr.arpa (192.168.0.101): icmp_seq=2 ttl=64 time=0.032 ms
为什么上面的www 成了mail 我有些不明白,还得需要高人来解说。希望高手看到了不要笑我傻冒!呵呵!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-26 22:15:40 | 显示全部楼层
呵呵! 配置sendmail+squirrelmail 成功了。原来问题出在网址上面,应该是mail.santoday.cn/webmail  这个配置比openwebmail简单多了。还需要就是怎么管理小松鼠。继续学下去。

root@santoday openwebmail]# ping www.santoday.cn
PING www.santoday.cn (192.168.0.101) 56(84) bytes of data.
64 bytes from mail.0.168.192.in-addr.arpa (192.168.0.101): icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from mail.0.168.192.in-addr.arpa (192.168.0.101): icmp_seq=2 ttl=64 time=0.032 ms
为什么上面的www 成了mail 我有些不明白,还得需要高人来解说。希望高手看到了不要笑我傻冒!呵呵!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-27 15:37:50 | 显示全部楼层
在这高手云集的地方,难道都没有人知道吗! 还是没时间阿!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-27 21:00:51 | 显示全部楼层
root@santoday openwebmail]# ping www.santoday.cn
PING www.santoday.cn (192.168.0.101) 56(84) bytes of data.
64 bytes from mail.0.168.192.in-addr.arpa (192.168.0.101): icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from mail.0.168.192.in-addr.arpa (192.168.0.101): icmp_seq=2 ttl=64 time=0.032 ms

为什么上面的www 成了mail 我有些不明白,还得需要高人来解说。希望高手看到了不要笑我傻冒!呵呵!
回复 支持 反对

使用道具 举报

发表于 2007-3-28 00:08:37 | 显示全部楼层
DNS 反解循环,很正常。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-28 14:46:29 | 显示全部楼层
谢谢楼上的大哥,让我明白了这个难题。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表