I’ve upgraded MAMP 6 to MAMP 7 on MacOS.
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.
(PS. There are other questions about the same error message but AFAICT they are all about much older versions of MAMP.)