Running
MAMP on standard ports (80 for Apache and 3306 for mySQL) makes MAMP ask for a password on each start up. I would like MAMP to start automatically when I log in, without requiring a password. There are a few ways to do this posted around the web, but they all involve hacking MAMP in one way or another. There is an alternative. Create the following AppleScript in AppleScript Editor:
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"
Replace
YOURPASSWORD and
YOURUSERNAME with the proper values, then save it as a run-only application -- to keep anyone from being able to open the script and read your password. Then add that script to your login items. That's it, you're done!
[
robg adds: This hint originally appeared in
this blog entry; it was submitted here by the blog's owner. I've reproduced it as it was, with one clarifying note and some minor formatting changes to fit our site layout.]