Common MAMP Problems

Developing on your local machine instead of a webserver saves a developer a lot of time and allows you to test functionality without the need for a test site. There are a couple of tools to allow someone to set up a server on their local machine; one of the most common tools is MAMP.

In using MAMP for a couple years there are a few gotcha’s that I’ve run into that are actually quite easy to fix if you know what to look for.

Apache Server Not Starting

If Apache isn’t starting is could be that Apache may already be running. You can turn off Apache manually in the terminal.

The other problem that I’ve had is when Apache is set through MAMP to open a particular folder and that folder no longer exists. If you simple go to MAMP and change that setting through the preferences button you should be able to fix it.

MySQL Not Starting

If MySQL isn’t starting it is pretty likely that it could already be running. You can very easily manually turn it off in the terminal. I’ve had this happen to me a few times and I believe it has something to do with not shutting MAMP off correctly.

MySQL Error #2002 –Β The server is not responding

You sometimes get this problem on the phpMyAdmin page when you’ve had another MySQL problem. This is actually just a caching problem. Just add a query string to your url or clear your cache and it should fix itself.

Conclusion

These are the only problems I’ve had with MAMP and they are quite easily fixed. Hopefully these little tips will save you some time.

18 thoughts on “Common MAMP Problems

  1. Thanks for your post! My student had the wrong folder name in the MAMP settings which caused Apache not to start. The note under the sude apachectl stop command is what tipped me off to look for that and it worked. Kudos!

  2. Fair play! i had the phpadmin problem. searched everywhere and had all sorts of complicated answers. Then i cam across your cler cache answer!!! I always clear my cache, but i never thought it would affect the phpmyadmin!

    I was close to reinstalling mamp. You saved me : )

  3. Just add a query string to your url or clear your cache and it should fix itself.

    I was not aware that you can clear cache via query string. Can you please provide example format?

    • Good Q! When you add a query string to a URL you don’t clear you cache but you do force your browser to fetch a new copy of the html file. Effectively clearing the cache for yourself. πŸ™‚

  4. Hi, I’m struggling to resolve an issue with MAMP and came across your post. Wondered if you had any ideas how to resolve?

    I’ve been developing a handful of sites without any issues using Yosemite and MAMP. I’ve recently done several updates for OS and now MAMP isn’t loading my localhost in browser (Chrome) http://localhost/MAMP/?language=English, it keeps throwing up this error message: ERR_NAME_NOT_RESOLVED.

    I’m running the latest version of MAMP 3.2.1 on Yosemite 10.10.3

    Apache and MySQL lights are green. I’ve tried MAMP default ports and 80/3306, I’ve tried rolling back to the previous install of MAMP, tried incognito browsing and Firefox, cleared cache … all without success. Any idea of how to resolve?

    • Hey Matt,

      I running the latest Yosemite as well. I haven’t seen that problem before. Sorry. πŸ™

      • Hey Patrick, thanks for your reply.

        I managed to solve the problem; there was something wrong within my host file in etc.

        Back to normal functionality now.

        Happy coding!

        • I’m having the exact same problem. MAMP was working fine until this morning I got this Error: ERR_NAME_NOT_RESOLVED

          I have tried everything you had in the post above. Can you help with what you corrected in your etc/host file to fix the problem?

          • Nevermind Matt,

            I just found another one of your posts pertaining to this problem elsewhere and found your solution

            After hours of research I FINALLY found the answer; something to do with the host file in etc

            I found this forum http://forum.mamp.info/viewtopic.php?f=2&t=82253 follow the steps listed to replace host file info.

            I was nearly a the brink of exhaustion with this issue, I guess the moral here is; NEVER GIVE UP!!!!

            Thanks all….now back to work πŸ™‚

            Thanks Again!!!!!

        • how to access the host file? Please?

  5. i gave up using mamp
    everything went smooth installing, but when i try go to htdocs result is not found,

    • Was having to many issues with MAMP, now using Desktop Server for all local development, their support is outstanding.

  6. Patrick! Who are you sir and why don’t you aren’t you teaching courses on Udemy?! You resolved my MAMP problem! For the past 24 hours I have been depressed because I could not connect to mySQL server via MAMP and so my WordPress theme development was cut short. Imagine the time and money lost if I was doing this for a client!? Patrick, you have a new friend and follower. God bless you sir.

  7. I may have to start using Dekstop Server, because I cleared this cache again today and that has not resolved anything. The issue is that it does not connect to the MySQL server, it seems a lot of people have problems with MAMP. I don’t know why folks insist on using it. It’s like Photoshop, the new version has a lot of problems right from download and all these companies insist you know how to use Photoshop.

    • I highly recommend Desktop Server, having switched over from Mamp several months ago, I haven’t looked back since! I was having way too many issues with Mamp on every upgrade and found the interface frustrating.

      Desktop Server is very simple to set up new local development sites, with a 2 click process and their support is outstanding β€” even for the non premium version!

      Make the switch and your workflow will improve immensely!

      Happy coding πŸ™‚

  8. Brajkishor Baheti

    When i do a killall, my terminal simply tells me no matching processes found. I have come to hate MAMP

  9. Naveed Alam Shaikh

    Dear Sir, I am facing the same problem with mamp, could you please define command for windows user ? apache and mysql both are not starting, I want to share one thing that I was using xampp before mamp, so is it the reason? that xampp may be using 80 port? please help me out. thanks…

Leave a Reply

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