2013-06-26 170 views
0

syslogd重新启动后,Apache开始记录Permission denied errors。箱子上没有任何变化。权限为755,配置文件没有改变。我甚至在通往web文件夹的所有文件夹上将权限设置为777,然后重新启动httpd。 SElinux禁用。 CentOS版本5.7。有任何想法吗?Apache:403 syslogd重启后拒绝权限

[[email protected] log]$ sudo cat messages 
Jun 23 04:02:55 systools syslogd 1.4.1: restart. 

[[email protected] log]$ head /etc/httpd/logs/error_log 
[Sun Jun 23 04:03:02 2013] [notice] Digest: generating secret for digest authentication ... 
[Sun Jun 23 04:03:02 2013] [notice] Digest: done 
[Sun Jun 23 04:03:04 2013] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. 
[Sun Jun 23 04:03:05 2013] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations 
[Sun Jun 23 04:04:16 2013] [error] [client 192.168.1.190] (13)Permission denied: access to /incident/rss.php denied 
[Sun Jun 23 04:09:14 2013] [error] [client 192.168.1.190] (13)Permission denied: access to /incident/rss.php denied 
[Sun Jun 23 04:14:14 2013] [error] [client 192.168.1.190] (13)Permission denied: access to /incident/rss.php denied 
[Sun Jun 23 04:19:15 2013] [error] [client 192.168.1.190] (13)Permission denied: access to /incident/rss.php denied 
[Sun Jun 23 04:24:16 2013] [error] [client 192.168.1.190] (13)Permission denied: access to /incident/rss.php denied 

    Forbidden 

You don't have permission to access/on this server. 
Apache/2.2.3 (CentOS) Server at systools.corp.webex.com Port 80 
+0

没有什么变化?谁是Web根目录和文件的所有者?使用ls -al来查看 –

+0

drwxr-xr-x 7根root 4096 Jun 26 09:52/var/www/html – user2001487

+0

由于对问题进行故障排除,时间戳是当前时间戳。即使使用/ var/www/html chownd到apache:apache,并且httpd重新启动,我仍然会获得权限被拒绝。 – user2001487

回答

0

更改了文件的权限并重新启动了httpd。

find /var/www -type d -exec chmod 775 {} \; find /var/www -type f -exec chmod 664 {} \; /etc/init.d/http restart