We develop and test our local WordPress sites regularly using MAMP on macOS. With every new release of macOS as well as MAMP, localhost sites will not working on Mac. If you are facing such issues, here are some suggestions.
Apache Server Cannot Start
When MAMP application is launched, it cannot start the Apache server though MySQL Server is showing in green.

Here is the temporary solution to fix the problem and open MAMP successfully.
- Open “Finder” and navigate to the following path:
▸ Applications ▸ MAMP ▸ Library ▸ bin
- Locate the file called “envvars”.
- Click on the file and press enter to change the file name to “_envvars”.

- Relaunch MAMP again.
- You will both Apache and MySQL servers in the green and localhost will be accessible again.
You can use this fix till the time permanent solution is available from MAMP developers.
Note: MAMP fixed this issue in the latest version, update your MAMP version to overcome this issue.
In case if you see MySQL server is not launched in MAMP, then add the below code in ▸ Applications ▸ MAMP ▸ bin ▸ startMysql.sh.
# /bin/sh unset DYLD_LIBRARY_PATH
MAMP Version 7.0
MAMP 7.0 introduced a new MySQL server version 8.0. This will change the folder structure and you should upload the database files under the following path:
Applications > MAMP > db > mysql80

Also, select the correct SQL version in the app’s interface by going to “Preferences > Server” section.

Check out article on how to import large MySQL database in MAMP.






Thanks for the save.
It solved my project, thanks a lot
the best answer i have ever find, directly in the point!
and well explained u the best.