Board logo

标题: [求助] 403 错误紧急求助 [打印本页]

作者: wpcp0510    时间: 2015-5-10 16:22     标题: 403 错误紧急求助

网页以前挺正常,最近莫名其妙的出现403错误,提示如下:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

遇到这种错误刷新页面偶尔会恢复,最终需要service httpd restart 重启下才能正常访问。
但是可能过10几个小时错误又会重新出现,重启httpd服务就好。

看日志有这种提示:
(24)Too many open files: /www/web/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer:
根据百度搜索说要修改文件夹权限为755,但是查询文件夹权限没错。

请教是什么原因导致的?如何办?
作者: wpcp0510    时间: 2015-5-10 17:10

Google搜到一个:
http://greproot.com/htaccess-pcfg_openfile-unable-to-check-htaccess-file/

1) A simple restart of apache fixed it all of a sudden.

2) Try ulimit -a as root and  check for “open files”. The default value will be 1024. Try raising it to 4096 as follows.

ulimit -n 4096

3) Also, you can raise this limit for apache by giving it in apache startup script at the beginning.

vi /etc/rc.d/init.d/httpd

Enter the following line at the beginning of the script.
ulimit -n 65536

Save the file and restart apache

/etc/rc.d/init.d/httpd restart
作者: 蚂蚱    时间: 2015-5-11 17:33

回复 2# wpcp0510

解决了吗
作者: junwen7788    时间: 2015-5-12 10:19

我也出现这个问题了,楼主怎么解决的? 求指教, 现在每隔几个小时就得重启服务  不然就403,刷新几次就可以访问,然后访问下一个页面又403
作者: hackyhuang    时间: 2015-5-12 15:22

同求。时而正常时而出现错误。再过一段时间就必须重启服务器了,否则完全无法执行PHP、运行了几个月都正常,就是上周五开始不正常了,两台VPS都这样。
作者: xuandun    时间: 2015-5-12 21:01

应该是权限问题 给这个站点(包括子目录文件)权限775
作者: junwen7788    时间: 2015-5-13 18:09

如果是权限问题,为什么重启下服务就正常了呢, 过几个小时又出现403, 非常不解~
作者: 黑锅    时间: 2015-5-16 08:22

我的站最近偶尔也出现这个问题了,我怀疑是不是装了云锁的原因?
作者: 天堂傻子    时间: 2015-6-7 08:14

一样的问题
作者: bird    时间: 2015-6-7 10:47

都是403
管理员  没人解释下么????
作者: 天堂傻子    时间: 2015-6-7 16:54

这个问题我已经解决的,早上到现在我都像植物人一样,网上的方法全都试了就是不行。
刚我在回忆前一段进行过什么操作,终于发现了
我删了一个FTP
刚才把那个删除的FTP添加进来,问题解决了!
作者: canimade    时间: 2015-6-7 17:33

我的也是这样,这五六天 总是出现Forbidden 404,不知道是不是升级wdcp导致的,之前不会这样的,不知如何解决,坐等解决方案,555555~~~
作者: chenqianwz    时间: 2015-6-7 20:28

同问  也是最近出现的
作者: chenqianwz    时间: 2015-6-7 20:29

@admin  403错误
作者: sudu8    时间: 2015-6-8 14:30

同样出现403错误,莫名其妙出现的。
更新了下配置文件就好了。
作者: xuweidiy    时间: 2015-6-8 14:46

这个是安装了云锁导致,卸载云锁apache组件,或者直接干掉云锁即解决!
作者: 注册啊    时间: 2015-6-8 15:44

回复 16# xuweidiy


   是的,我昨天看了下进程,跟其他服务器对比,的确是因为云锁。
作者: fanshichenlun    时间: 2015-6-8 16:42

这个是云锁55版本改一个问题导致的,对于这个问题给大家带来的问题表示抱歉;现在云锁已经更新,56版本特意解决了这个问题,请大家更新到56版本即可,不好意思了。




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2