MAMP stop servers button doesn’t work

I own a Macbook Pro, and unlike it’s pre-descendants it has some wake from sleep issues described and resolved here (thank you Windley for a fix!). The thing is, if you happen to be in a situation where you need to force your Mac to shutdown, like I had to because of the wake from sleep problem, there is another problem waiting for you after reboot.

I use MAMP for my websites development locally. When I forced my Mac to a shutdown, both Apache and MYSQL servers were started. When I rebooted and turned on my MAMP interface it appeared that they were started as indicated by a green light, but in fact they weren’t. I tried to stop MAMP with Stop Servers button, but nothing happened. I tried to kill the apache server from the Terminal with:
/Applications/MAMP/Library/bin/apachectl stop
but ‘httpd (pid 55500?) not running’ returned, meaning that in fact Apache was not running. OK, so I thought I’ll start it with:
/Applications/MAMP/Library/bin/apachectl start
and I’ve gotten an error again:

Permission denied: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs

Wow, that sucks! I really hate when my system messes up in the middle of my work day, and just when I thought I will spend an hour or so messing with this problem, the simple solution appeared:

All I needed to do is to click on a ‘Preferences’ button in the MAMP interface, and then click OK. The servers rebooted and started normally.

Technorati Tags: , , , , , ,

Bookmark this article! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • blogmarks
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • BlinkList
  • Furl
  • IndianPad
  • LinkaGoGo
  • Ma.gnolia

16 Responses to “MAMP stop servers button doesn’t work”

  1. mike Says:

    Had the exact thing happen to me, I was banging my head on the wall trying to figure out how to fix this.

    Thanks for the easy fix, worked like a charm ;)

    -Mike

  2. mozzer Says:

    Dude, your a lifesaver…had the same exact issue with my Macbook Pro…you just saved me alot of time. Thanks!

  3. JL Says:

    I owe you a big one. One hour before a big presentation to the customers from my laptop and MAMP freezes… Thanks.

  4. ML Says:

    Great! thanx for post this, helped me a lot

  5. Marco Says:

    Thanks! You helped me out big time!

  6. Jakob Says:

    Thank you, same problem fixed here.

  7. koob Says:

    Add another to the list…

    Your solution saved me. Thanks

  8. therealgonzo Says:

    Oh boy, I was as well in the pref pane… but didn’t push the OK button… till I stepped over your article…. now I pushed it and it’s working again! Thanks a lot buddy!

  9. jeff Says:

    another one here, thanx!!!

  10. Oscar Says:

    Thanks so much! I always clicked the cancel button because it looked like everything was set up right. I also rebooted my machine like a dozen times. Thanks a lot!

  11. Gene Says:

    Thank you. That worked like a charm.

  12. dascope Says:

    Thank you, this saved me a lot of time bug hunting rather than doing my work as I should.

  13. sentifux Says:

    uh.
    absolutely great. I spent hours on this.
    thanx!

    m.

  14. digital kandy Says:

    LIFE SAVER! Thanks for posting this.

  15. Elliott Cost Says:

    This is a life saver. I just had this happen to me, searched google, found your site and now MAMP is fixed. Thank you!

  16. Marcell Says:

    This is awesome, had the some problem, many thanks!

Leave a Reply