WDlinux官方论坛's Archiver

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

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=68249&ptid=38387]2#[/url] [i]wpcp0510[/i] [/b]

解决了吗

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

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=68899&ptid=38387]16#[/url] [i]xuweidiy[/i] [/b]


   是的,我昨天看了下进程,跟其他服务器对比,的确是因为云锁。

fanshichenlun 发表于 2015-6-8 16:42

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

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.