21

Run MAMP on port 80 without a password – the easy way

Posted July 31st, 2010 in Downloads, Mac OS X, MySQL, PHP by Damian

If you use MAMP for your local web development with Apache running on port 80 you will find that it asks you for a password every time you run it. It’s annoying to say the least.

Fortunately there is a way around this. With a little bit of AppleScript and thanks to guys at macoshints I put together a small app that runs Apache & MySQL from MAMP without asking for a password each time. It’s quite secure as well because it uses a stored password locked in the Keychain. It also quits Apache & MySQL when you quit the app itself.

Here is how to use it:

  1. Open the Keychain Access app and click ‘+’ to add a new item. Call the item ‘MAMP’ and enter the account name and password that you use to log in to your Mac.
  2. Download and launch the Apache & MySQL – No Password app

Enjoy!

21 Responses so far.

  1. [...] I could add to my dock. It works! One less daily annoyance in my life! Damian Gaweda has posted a more elegant solution that’s worth checking [...]

  2. [...] will ask you for you password every time you run it (annoying). Fortunately you can avoid that by running this app I wrote, which stores MAMPs password in your [...]

  3. joe says:

    this is great!!! could only be better if it didnt even show up on the dock! ;)

  4. James says:

    This solution ‘just works’. Thanks for wrapping it up in a nice little package.
    I just setup a new development box and this was exactly what I needed.

    Kudos

  5. Maarten says:

    So, what exactly happens when I launch your app? Should I store your app somewhere and run it each time I want to run MAMP or is it a one-time executable that can be deleted after i’ve run it.

    Is it for instance possible to autoload MAMP (obviously without the password-prompt) on startup with this app?

    Questions, questions, questions… Thanks for sorting things out!

    • Damian says:

      You should put the app in your Applications folder and run it whenever you want to use MAMP. You can also put it in your Login Items under your account in System Preferences to launch it on startup.

  6. Simon says:

    Excellent app. Sure removes one big headache!

    Many many thanks!

  7. This is great but it doesn’t seem to work with MAMP PRO?

    Have Googled for any solutions for MAMP PRO and no one seems to be dealing with MAMP PRO and this password issue. Any suggestions on how to get this working for MAMP PRO?

  8. [...] Damian from 46palermo has a more convenient solution, Which can be found over here. [...]

  9. Squall_ says:

    Hi,

    Thanks for the great app. Otherwise works as expected on my OS X 10.5 but it does not quit. Always have to Force quit, which is becoming quite annoying. I would appreciate if you could help me out with this, or see if it has to do with your software and maybe fix it. Thanks.

    Btw, when I try to quit, it seems it stops apache but not mysql. Maybe that has something to do with it…

  10. dude, this app is pretty awesome, and your instructions very clear. I took the whole thing one step closer & broke the script in half. That way i don’t need to keep the app “running” and clogging up my cmd+tab space and dock. I then rolled that script into an automator script that opens it along with my text editor, browser & development folders. If anyone’s interested, you can get the file here: Open_MAMP_(No_Password).zip

  11. Suin says:

    Very nice app! A lot of thanks!
    I introduced it in my Blog(Japanese).

  12. erik says:

    Has anybody tried the script provided by Justin?

    How can i open the source of this script?
    Any clues?

    I like to see what a script is doing.
    And maybe change it to my needs.

  13. Martin Sjåstad says:

    Thanks a million times! I have been waiting for an app like this for AGES!
    No more logging in and having to type my password 3 times!! Sweet!

  14. Adamo Maisano says:

    This works, but now each time I start the computer “security wants to use your keychain” is popped up and the network is unavailable until I enter the password.

    Using Snow Leopard.

    • Adamo Maisano says:

      Turns out this was a multiple keychain issue – the password dialogue no longer appears.

      However, if anyone had thoughts on the possibility of this app preventing immediate access to the internet when set as a login item, that’d be helpful.

      Thanks for the app though!

Leave a Reply