Reputation: 45
I've learned the hard way that there are various ways to setup apache, php and mysql on Snow Leopard, and that I am not familiar enough with server config, php, or mysql to follow just any method.
I would really like to start fresh. Yeah, I know, I should've done the setup while saving default backup files for EVERYTHING, but unfortunately i guess I did not cover all of my tracks and I'm not sure how to completely revert to original settings, safely.
Any suggestions? Any resources? There are a ton of tutorials for setup, but I'm not seeing any for reverting back to default.
Much Appreciated :) Thanks!
Upvotes: 1
Views: 569
Reputation: 4879
The best way to set up your mac is using Homebrew. You first need to open up the App Store and download latest XCode (4.3.3 I believe) and it takes a while. You'll then need to go into Settings and install Command Line Tools for XCode. After you do this, it includes the necessary GCC compilers, etc.
Then the "magic" happens. You open the Terminal app on your Mac and follow these instructions:
Install Homebrew:
Install MySQL:
Install PHP:
Here are a couple tutorials (I use nginx -> php-fastcgi or php-fpm instead):
Upvotes: 1
Reputation: 16094
I would go for a linux virtual machine as webserver. That's my setup on my MacOS, I use virtualbox with an Ubuntu OS.
The main advantage I see are:
Upvotes: 1