相关疑难解决方法(0)

FastCGI 超时错误 MAMP Pro 4

我研究了较旧的问题

https://craftcms.stackexchange.com/questions/4661/fastcgi-error-when-accessing-a-local-development-site-using-mamp-pro/6573#6573?newreg=aa4ad11b453f4c7f93882ce478d837a3

你如何增加 MAMP / MAMP Pro 上的 apache fastCGI 超时?

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

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

#!/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
Run Code Online (Sandbox Code Playgroud)

并且

#!/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
Run Code Online (Sandbox Code Playgroud)

但它似乎没有任何影响我仍然得到同样的错误

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

我也尝试编辑 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
Run Code Online (Sandbox Code Playgroud)

在这种情况下,Apache 不会启动

apache mamp fastcgi mamp-pro

4
推荐指数
2
解决办法
3957
查看次数

标签 统计

apache ×1

fastcgi ×1

mamp ×1

mamp-pro ×1