Stop password prompt on MAMP startup

In response to the commands that were posted:

1) Run MAMP on port > 1024

Running all of the servers on MAMP (nginx, apache, mysql) with port ranges above 1024 allows the Mac OS X account you logged in with to launch the services, so you will not be asked for a password in this instance. Any server that runs below port 1024 requires root privileges when being executed.

2) chmod -R a+w /tmp

This command would recursively go through all files and sub folders in /tmp and make them writable for the current user. When MAMP launches, servers create temporary files in this directory.

Also if you decide you want to run the servers below port 1024 and want a solution with applescript that does not store the password in plain text then see this link applescript password with keychain


As found on Macworld and already mentioned by Tom in the other answer there is a way with applescript! Downside is you have to save your user credentials in plain text.

  1. Open AppleScript Editor
  2. Enter the following code replacing YOURPASSWORD and YOURUSERNAME with your user credentials
  3. Save it as application. You might tick run-only to prevent other users from reading the plain text as a small security measure
do shell script "/Applications/MAMP/bin/startApache.sh &" password "YOURPASSWORD" user name "YOURUSERNAME" with administrator privileges
do shell script "/Applications/MAMP/bin/startMysql.sh > /dev/null 2>&1"

There might be an issue with the correct file path as MAMP apparently changed startmySQL.sh to startMysql.sh in some version, so double check if it's not working!

You can put the new application in the Login Items (System Preferences -> Users & Groups -> Login Items), so the Apache server and MySQL start automatically without even showing up the MAMP-App at startup (silent start).


I've put together an app that allows you to start/stop MAMP's Apache and MySQL without the password request, even on port 80. It stores the password in Keychain, so you only need to enter it once. It has a nice icon too!

Download: http://www.46palermo.com/blog/run-mamp-without-password-easy-way/


According to a living-e rep they are considering adding an option to store the password in the keychain:

http://forum.webedition.de/phpBB/viewtopic.php?f=4&t=5517&p=12019

Update: I pestered Living-e support and got them to add it as a feature request to their bug tracker. The link is here: http://qa.living-e.de/tracker/view.php?id=3648 (requires registration) if you want to follow it.

Another update: Still following this issue. Looks like living-e moved their bug tracker, the new link to this issue is:

http://bugs.mamp.info/view.php?id=3652

It's in German but the Google translation is:

When will start and stop the server in each case the admin password is required if port is used as low-1024th If we could get the password from the OS X Keychain / keyring, allowed themselves to avoid annoying popup ads.

Or a German speaker's translation is:

When the Server starts/stops it will ask for the admin password each time. If it could get the password from OS X Keychain / Keyring, the annoying popup could be avoided.