---
title: 'Start MAMP on login without any ugly hacks'
url: 'https://stevenjaycohen.com/journal/start-mamp-on-login-without-any-ugly-hacks'
markdown: 'https://stevenjaycohen.com/journal/start-mamp-on-login-without-any-ugly-hacks.md'
date: '2010-03-24'
description: '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 …'
taxonomy:
  category:
    - Journal
  tag:
    - 'os x'
    - software
---

# Start MAMP on login without any ugly hacks

## [Start MAMP on login without any ugly hacks](https://stevenjaycohen.com/journal/start-mamp-on-login-without-any-ugly-hacks)

    24th Mar 2010   [os x](https://stevenjaycohen.com/tag:os%20x#body-wrapper) [software](https://stevenjaycohen.com/tag:software#body-wrapper)  

Running [MAMP](https://web.archive.org/web/20080820125434/https://mamp.info/) 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:

```
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"
```

Save it as a run-only application (to keep anyone from being able to open the script and read your password\*). Then, add this script to your login items. That’s it, you’re done!

\* As noted below, this is not secure. And, all attempts to make it secure result in a dialog box being displayed. So, either use this insecure script, or remember to start MAMP manually. I apologize for my mistake.

 [ Previous Post](https://stevenjaycohen.com/journal/link-malware-delivered-by-yahoo-fox-google-ads-insecurity-complex-cnet-news) [Next Post ](https://stevenjaycohen.com/journal/my-scripts-for-pomodoro-desktop)

---

## Navigation

- Parent: [My Journal](https://stevenjaycohen.com/journal.md)
- Previous: [My Scripts for Pomodoro Desktop](https://stevenjaycohen.com/journal/my-scripts-for-pomodoro-desktop.md)
- Next: [Link: Malware delivered by Yahoo, Fox, Google ads | InSecurity Complex - CNET News](https://stevenjaycohen.com/journal/link-malware-delivered-by-yahoo-fox-google-ads-insecurity-complex-cnet-news.md)
