Question

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

Was it helpful?

Solution

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.

OTHER TIPS

I'm running Mac OS X Mountain Lion on MBP and I faced some problems with apache myself. Out of the blue it stopped working and searched a lot of forums for answers, none of which gave me any.

For this to work you will need the original "httpd-conf" file and the original "httpd-vhosts.conf" file. If you have those all you need to do is replace the "httpd.conf" file as well as the "extras" folder that is found in /etc/apache2. Once you replace them restart your computer. That's it. Hope this helps! :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top