FastCGI超时错误MAMP Pro 4 [英] FastCGI timeout error MAMP Pro 4

查看:294
本文介绍了FastCGI超时错误MAMP Pro 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我调查了一些较老的问题

I looked into older questions

如何会增加MAMP/MAMP Pro上的Apache fastCGI超时吗?

但是我的配置有很大不同,因为我使用的是MAMP Pro 4,并且有多个PHP版本正在运行

but my configuration is quite differente because I'm using MAMP Pro 4 and I have multiple PHP versions running

我试图编辑MAMP/fcg-bin/phpx.x.x.fcgi并添加-idle-timeout 3600,因为它看起来更干净

I tried to edit MAMP/fcg-bin/phpx.x.x.fcgi and add -idle-timeout 3600, since it seems a little cleaner

#!/bin/sh
export PHP_FCGI_CHILDREN=4
export PHP_FCGI_MAX_REQUESTS=200
exec /Applications/MAMP/bin/php/php5.4.45/bin/php-cgi -c "/Library/Application Support/appsolute/MAMP PRO/conf/php5.4.45.ini" -idle-timeout 3600

还有

#!/bin/sh
export PHP_FCGI_CHILDREN=4
export PHP_FCGI_MAX_REQUESTS=200
exec /Applications/MAMP/bin/php/php5.6.30/bin/php-cgi -c "/Library/Application Support/appsolute/MAMP PRO/conf/php5.6.30.ini" -idle-timeout 3600

但似乎没有任何效果,但我仍然遇到相同的错误

but it doesn't seem to have any effect i still get the same error

FastCGI:与服务器"/Applications/MAMP/fcgi-bin/php5.6.30.fcgi"的通信中止:空闲超时(30秒)

FastCGI: comm with server "/Applications/MAMP/fcgi-bin/php5.6.30.fcgi" aborted: idle timeout (30 sec)

并且我还尝试编辑apache> httpd.conf

and i also try to edit apache > httpd.conf

#MAMP_FastCgiServer_MAMP
FastCgiServer /Applications/MAMP/fcgi-bin/php5.4.45.fcgi -idle-timeout 2400
FastCgiServer /Applications/MAMP/fcgi-bin/php5.6.30.fcgi -idle-timeout 3600

在这种情况下,Apache无法启动

in this case Apache would not start

推荐答案

似乎唯一可行的方法是在PHP选项卡中检查Xdebug. 我之前曾尝试过,但是第一次尝试似乎并没有奏效. 然后,我检查,保存,退出并重新启动MAMP PRO,它成功了.

The only way it seem to be possible is by checking Xdebug in PHP tab. I did try that before, but did not seem to work on first attempt. I then checked, save, quit and relaunch MAMP PRO and it worked.

这篇关于FastCGI超时错误MAMP Pro 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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