We develop and test our local WordPress site regularly using MAMP on macOS. With the latest release of Yosemite OS X 10.10 for public use, MAMP stopped working on Mac. When MAMP application is launched it is not able to start Apache server though MySQL Server was 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