Apache,FastCGI-错误503 [英] Apache, FastCGI - Error 503
问题描述
有人向我指出,我的服务器是不安全的,因为任何人都可以通过PHP读取任何文件,即使该文件不在他的DocumentRoot中.
It was pointed out to me that my server is insecure, because anyone could read any file through PHP, even if it was out of his DocumentRoot.
我决定为虚拟主机重新配置整个apache和所有配置文件,并安装了Mod FastCGI,我设法使其很好地运行,我再也没有权限方面的问题.
I decided to reconfigure whole apache and all configuration files for virtual hosts and installed Mod FastCGI and I managed to get it running quite nicely, I don't have problems with rights anymore.
但是似乎还有另一个问题.当我尝试加载3个以上的站点(在不同的VirtualHosts =>不同线程上的不同用户)时,页面加载一段时间,然后崩溃,并显示错误503:服务暂时不可用".
But there seems to be another problem. When I try to load more than 3 sites (on different VirtualHosts => different users on different threads) page loads for a while and than crashes on "Error 503: Service Temporarily Unavailable".
我尝试将所有虚拟主机的默认设置PHP_FCGI_CHILDREN var从0增加到更高的数字,但是没有运气.在我阅读某些教程时,我还尝试将apache2.conf中的KeepAlive var设置为Off,但这似乎无济于事.
I tried increasing PHP_FCGI_CHILDREN var from my default setting for all VirtualHosts which is 0 to higher numbers, but without luck. I also tried to set KeepAlive var in my apache2.conf to Off as I read in some tutorial, but it seems like nothing helps.
有人知道如何解决此问题吗? [我的Apache error.log和suexec.log为空.]
Does anyone know how to resolve this issue? [My Apache error.log and suexec.log is empty.]
推荐答案
找到了我自己问题的答案.还有一些我忽略的设置.
Found the answer to my own question. There are few more settings I overlooked.
FcgidMaxProcesses 15
FcgidFixPathinfo 1
FcgidProcessLifeTime 0
FcgidTimeScore 3
FcgidZombieScanInterval 10
FcgidMaxRequestsPerProcess 0
FcgidMaxRequestLen 33554432
FcgidIOTimeout 60
这些是我在apache.conf中的设置,一切正常.
Those are my settings in apache.conf and everythings works as expected.
这篇关于Apache,FastCGI-错误503的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!