mamp

MAMP 7 upgrade 'Apache couldn't be started' but runs okay from terminal; symlinks for PHP broken


I've upgraded MAMP 6 to MAMP 7 on macOS and when I start MAMP, I get a dialogue that says:

'Apache couldn't be started. Please check your MAMP installation and configuration.'

There is nothing in /Applications/MAMP/logs/apache_error.log for the time when I try to start it.

If I do /Applications/MAMP/Library/bin/apachectl start in terminal, then it starts, but the log then says:

/Applications/MAMP/fcgi-bin/php.fcgi: line 4: exec: /Applications/MAMP/bin/php/php8.3.1/bin/php-cgi: cannot execute: No such file or directory
/Applications/MAMP/fcgi-bin/php.fcgi: line 4: /Applications/MAMP/bin/php/php8.3.1/bin/php-cgi: No such file or directory

This is very strange, as MAMP is set to run 8.3.8.

Furthermore there is a symlink /Applications/MAMP/conf/php8.3.1 which is broken, as its target /Applications/MAMP/bin/php/php8.3.1/conf doesn't exist -- there is no php8.3.1 folder.

Also, having started Apache from the terminal, URL rewrites aren't working.

P.S. There are other questions about the same error message but as far as I can tell, they are all about much older versions of MAMP.


Solution

  • Install the 14-day trial of MAMP Pro and start it up. Then, close MAMP Pro and open MAMP.