developing smarter web applications...

Macports

Apache, MySQL and PHP on Snow Leopard

Snow Leopard comes with PHP 5.3 installed by default. Since I do a lot of Drupal development, I can't actually use that version of PHP and I needed to downgrade to PHP 5.2.x. I personally do not like the way that Apple has setup their AMP stack, so this is how I was able to get an acceptable one setup.

Note: This method uses MacPorts, so you will need to install that first.

sudo port clean php52
sudo port -f uninstall installed
sudo port installed
sudo port install grep
sudo port install apache2

Dead simple GIT install on Mac

Git is the new cool kid in town when it comes to source code management. I wanted to install Git on my Mac, but I had heard installing it could be a bit of a pain. I did a bunch of research before I tried an install and it seemed Macports would be the easiest way to get it working.

MySQL on a Mac: What a headache

I have spent a stupid amount of time trying to get MySQL installed/configured/working on my Mac. Since I am coming from Ubuntu, I am used to being able to install an entire LAMPs stack with this one command:

$ sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5 php5-xsl php5-gd php-pear libapache2-mod-auth-mysql php5-mysql

Apparently on a Mac this is a complete PITA.

 
Syndicate content