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,但是查询文件夹权限没错。
请教是什么原因导致的?如何办? 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 [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=68249&ptid=38387]2#[/url] [i]wpcp0510[/i] [/b]
解决了吗 我也出现这个问题了,楼主怎么解决的? 求指教, 现在每隔几个小时就得重启服务 不然就403,刷新几次就可以访问,然后访问下一个页面又403 同求。时而正常时而出现错误。再过一段时间就必须重启服务器了,否则完全无法执行PHP、运行了几个月都正常,就是上周五开始不正常了,两台VPS都这样。 应该是权限问题 给这个站点(包括子目录文件)权限775 如果是权限问题,为什么重启下服务就正常了呢, 过几个小时又出现403, 非常不解~ 我的站最近偶尔也出现这个问题了,我怀疑是不是装了云锁的原因? 一样的问题 都是403
管理员 没人解释下么???? 这个问题我已经解决的,早上到现在我都像植物人一样,网上的方法全都试了就是不行。
刚我在回忆前一段进行过什么操作,终于发现了
我删了一个FTP
刚才把那个删除的FTP添加进来,问题解决了! 我的也是这样,这五六天 总是出现Forbidden 404,不知道是不是升级wdcp导致的,之前不会这样的,不知如何解决,坐等解决方案,555555~~~ 同问 也是最近出现的 @admin 403错误 同样出现403错误,莫名其妙出现的。
更新了下配置文件就好了。 这个是安装了云锁导致,卸载云锁apache组件,或者直接干掉云锁即解决! [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=68899&ptid=38387]16#[/url] [i]xuweidiy[/i] [/b]
是的,我昨天看了下进程,跟其他服务器对比,的确是因为云锁。 这个是云锁55版本改一个问题导致的,对于这个问题给大家带来的问题表示抱歉;现在云锁已经更新,56版本特意解决了这个问题,请大家更新到56版本即可,不好意思了。
页:
[1]