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

Codarz360 picture Codarz360 · Jul 12, 2014 · Viewed 15.7k times · Source

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.

Thanks, Codarz360

Answer

eballeste picture eballeste · Jul 27, 2014

This was so tedious but finally got it to work.

In MAMP PRO:

Under File > edit template > apache > httpd.conf

Find the block for mod_fcgi

<IfModule mod_fastcgi.c>

and delete the following line:

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.

Examples:

FastCgiServer /Applications/MAMP/fcgi-bin/php5.5.10.fcgi -idle-timeout 2400
FastCgiServer /Applications/MAMP/fcgi-bin/php5.4.25.fcgi -idle-timeout 3600

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.