问题描述
有人知道如何在MAMP/MAMP Pro上增加Apache fastCGI超时吗?我到处都看过,但似乎找不到.
Does anybody know how to increase the apache fastCGI timeout on MAMP / MAMP Pro? I've looked everywhere but can't seem to find it.
任何帮助一如既往.
谢谢,Codarz360
Thanks,Codarz360
推荐答案
这很乏味,但最终使其起作用.
This was so tedious but finally got it to work.
在MAMP PRO中:
In MAMP PRO:
在文件"下>编辑模板> apache> httpd.conf
Under File > edit template > apache > httpd.conf
找到mod_fcgi的块
Find the block for mod_fcgi
<IfModule mod_fastcgi.c>
并删除以下行:
MAMP_FastCgiServer_MAMP
由于您可以指定每个域要使用的PHP版本,因此需要为每个php版本设置一个新的fastcgiserver及其相应的-idle-timeout ###标志.这些应该放在删除前一个MAMP_FastCgiServer_MAMP
行的位置.
Since you can specify which version of PHP you want to use with each domain, you need to set a new fastcgiserver, per php version, with its corresponding -idle-timeout ### flag. These should be placed where you deleted the previous MAMP_FastCgiServer_MAMP
line.
示例:
FastCgiServer /Applications/MAMP/fcgi-bin/php5.5.10.fcgi -idle-timeout 2400
FastCgiServer /Applications/MAMP/fcgi-bin/php5.4.25.fcgi -idle-timeout 3600
保存文件,MAMP PRO将要求您重新启动所有服务器以进行更改.对其进行测试,您应该能够在没有500个错误的情况下完成您的工作.
Save the file and MAMP PRO will require you to restart all of your servers in order for the changes to take place. Test it out and you should be able to do what you where doing with no 500 Errors.
这篇关于如何在MAMP/MAMP Pro上增加apache fastCGI超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!