Install PHP and Mysql on OSX Mountain Lion

Install PHP and Mysql on OSX Mountain Lion I usually develop on an Ubuntu VM running in VirtualBox but have needed to install PHP and MySQL on OSX Mountain Lion on the MacBook Pro. Here’s a Github Gist from Aaron Brady with details on how to do it.

Restart Apache on Mac OS X Mountain Lion

This is here for reference as I keep forgetting how to restart apache on Mac OS X Mouintain Lion. Here’s how to do it:

Enter password and you’re done. You can also start and stop Apache by using the ‘start’ and ‘stop’ parameters: