首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache: 403权限在syslogd重新启动后被拒绝

Apache: 403权限在syslogd重新启动后被拒绝
EN

Stack Overflow用户
提问于 2013-06-27 01:10:45
回答 1查看 1.4K关注 0票数 0

在syslogd retarted之后,Apache开始记录权限被拒绝的错误。盒子上什么也没变。权限是755,配置文件没有改变。我甚至将指向web文件夹的所有文件夹的权限都设置为777,并重新启动httpd。SElinux已禁用。CentOS 5.7版。有什么想法吗?

代码语言:javascript
复制
[user@host log]$ sudo cat messages
Jun 23 04:02:55 systools syslogd 1.4.1: restart.

[user@host 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
EN

回答 1

Stack Overflow用户

发布于 2013-06-27 02:53:11

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

代码语言:javascript
复制
find /var/www -type d -exec chmod 775 {} \; find /var/www -type f -exec chmod 664 {} \; /etc/init.d/http restart
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17326382

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档