Skip to content

Instantly share code, notes, and snippets.

Install MAMP stack on Mountain Lion using MacPorts

NOTE: I keep most of my Apache/PHP/MySQL configuration stuff in a local Git repository so I can track changes and I symlink to those from where they should be so you will see commands such as sudo ln -s ~/Documents/configs/PHP/fat-tony.local.php55.ini /opt/local/etc/php55/php.ini. If you don’t have a similar setup, just copy your configuration files to where they need to be.

ALSO: I like to prepend some of the commands with time just for curiosity’s sake to see how long it takes.

Turn off the built-in Apache

Go to System Preferences -> Sharing and uncheck the Personal Web sharing. You will never turn Apache on/off here again.