Home » Web Tutorials » WordPress » Fix WordPress MAMP Not Working Issue in macOS

Fix WordPress MAMP Not Working Issue in macOS

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.

MAMP Apache Server Not Started with Mac Yosemite
MAMP Apache Server Not Started on Mac

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”.
Change MAMP File Name in OS X Yosemite
Change MAMP File Name
  • 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
MySQL 8 in MAMP 7
MySQL 8 in MAMP 7

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

Select SQL Server in MAMP
Select SQL Server in MAMP

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

2 thoughts on “Fix WordPress MAMP Not Working Issue in macOS”

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

Leave a Comment

Your email address will not be published. Required fields are marked *