你如何增加 MAMP/MAMP Pro 上的 apache fastCGI 超时? [英] How do you increase the apache fastCGI timeout on MAMP / MAMP Pro?

查看:60
本文介绍了你如何增加 MAMP/MAMP Pro 上的 apache fastCGI 超时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在 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.

一如既往地感谢任何帮助.

Any help is appreciated as always.

谢谢,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 超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆