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: mac, os x, mamp, apache, mysql, servers, shutdown















April 4th, 2008 at 11:24 am
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
April 22nd, 2008 at 12:58 pm
Dude, your a lifesaver…had the same exact issue with my Macbook Pro…you just saved me alot of time. Thanks!
April 23rd, 2008 at 4:39 am
I owe you a big one. One hour before a big presentation to the customers from my laptop and MAMP freezes… Thanks.
May 12th, 2008 at 3:28 pm
Great! thanx for post this, helped me a lot
May 19th, 2008 at 11:28 pm
Thanks! You helped me out big time!
May 22nd, 2008 at 8:24 am
Thank you, same problem fixed here.
May 28th, 2008 at 6:32 am
Add another to the list…
Your solution saved me. Thanks
May 28th, 2008 at 3:49 pm
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!
June 5th, 2008 at 7:32 am
another one here, thanx!!!
June 8th, 2008 at 10:59 pm
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!
June 28th, 2008 at 11:51 am
Thank you. That worked like a charm.
July 2nd, 2008 at 7:57 am
Thank you, this saved me a lot of time bug hunting rather than doing my work as I should.
July 16th, 2008 at 5:12 pm
uh.
absolutely great. I spent hours on this.
thanx!
m.
July 27th, 2008 at 9:22 am
LIFE SAVER! Thanks for posting this.
August 2nd, 2008 at 12:32 am
This is a life saver. I just had this happen to me, searched google, found your site and now MAMP is fixed. Thank you!
August 11th, 2008 at 4:04 am
This is awesome, had the some problem, many thanks!