“Optimizations” in the sense that you’ll have to do less work. This website gives some great tips on saving you some time using MAMP.
http://www.sitepen.com/blog/2008/05/16/supercharge-mamp/
This site below actually helped me with the silent MAMP startup. Read the comments on this page for updates on getting it to work with version 2. It’s so good to not deal with the GUI and entering my password!
http://stringfoo.com/2008/08/25/tutorial-launching-mamp-silently-on-startup/
The 2nd website no longer exists and I’m afraid the first one will be gone. Below are the steps required to start MAMP 3.x without the GUI automatically on startup:
- Use Standard Ports
- Set the web port 80 and and MySQL port to 3306 by using the MAMP GUI preferences. There’s even a button to set it so you don’t need to type it.
- Set up Virtual hosts (optional)
- Create the directory /Applications/MAMP/conf/apache/vhosts
- Open /Application/MAMP/conf/apache/httpd.conf and add this to the end:
-
NameVirtualHost *:80 Include /Applications/MAMP/conf/apache/vhosts/*.conf
-
- Restart Apache
-
sudo /Applications/MAMP/bin/apache2/bin/apachectl restart
-
- Run MAMP at startup without having the GUI popup.
- Put the following in /Library/LaunchDaemons/USERNAME.mamp.start.apache.plist replace USERNAME with your username in both the filename and the contents below.
-
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Disabled</key> <false/> <key>Label</key> <string>corey.mamp.start.apache</string> <key>ProgramArguments</key> <array> <string>/Applications/MAMP/Library/bin/apachectl</string> <string>start</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>
-
- Create /Library/LaunchDaemons/USERNAME.mamp.start.mysql.plist replace USERNAME with your username in both the filename and the contents below.
-
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>USERNAME.mamp.start.mysql</string> <key>ProgramArguments</key> <array> <string>/Applications/MAMP/Library/bin/mysqld_safe</string> <string>--port=3306</string> <string>--socket=/Applications/MAMP/tmp/mysql/mysql.sock</string> <string>--lower_case_table_names=1</string> <string>--pid-file=/Applications/MAMP/tmp/mysql/mysql.pid</string> <string>--log-error=/Applications/MAMP/logs/mysql_error_log</string> </array> <key>RunAtLoad</key> <true/> <key>UserName</key> <string>corey</string> </dict> </plist>
-
- Change the file permissions using the following commands:
-
sudo chown root:wheel USERNAME.mamp.start.apache.plist sudo chown root:wheel USERNAME.mamp.start.mysql.plist
-
- Put the following in /Library/LaunchDaemons/USERNAME.mamp.start.apache.plist replace USERNAME with your username in both the filename and the contents below.