Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FastCGI timeout error MAMP Pro 4

I looked into older questions

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

How do you increase the apache fastCGI timeout on MAMP / MAMP Pro?

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

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

and also

#!/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: comm with server "/Applications/MAMP/fcgi-bin/php5.6.30.fcgi" aborted: idle timeout (30 sec)

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

in this case Apache would not start

like image 784
al404IT Avatar asked Dec 03 '22 22:12

al404IT


2 Answers

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.

like image 179
al404IT Avatar answered Feb 10 '23 12:02

al404IT


In Mamp pro usally this problem is for the setting: "Individual Php version for every Host (CGI mode)" .. uncheck this and save.

like image 30
derby Avatar answered Feb 10 '23 13:02

derby