Mac OS X - Re-install fresh/clean copy of Apache / PHP / MySQL Server

JimmyJammed picture JimmyJammed · Dec 28, 2011 · Viewed 9.2k times · Source

So I use the built in local server on my Mac for building sites, and I was recently trying to install PEAR so that I could use SMTP mail functions, but seemed to have screwed something up, and it is now causing problems with my PHP mySQL connection.

I was wondering, is there an easy way to just re-install a fresh copy of Apache? I am on a Mac Mini, OS X v10.6.8 Snow Leopard

Answer

Alex Coplan picture Alex Coplan · Dec 28, 2011

I would recommend using MAMP - it's basically a virtual environment for your entire Apache / MySQL / PHP installation. - I use it for all my development and never had an issue for it. Plus, it is all contained within one folder in your Applications directory, so upgrading / removing is painless.