fullybaked | davebaker

I'm a developer living in the UK and when I'm not spending time with my wife and our 2 wonderful little boys, I love hacking around with code

I'm passionate about technology, web development, gaming and fencing

4 March 2013

Install PHP5.4 on OSX Mountain Lion

A little tip on getting PHP 5.4 installed on the latest OSX.

OSX ML ships with PHP 5.3 installed but the latest version is now on 5.4.

I'm a big fan of Homebrew and its pretty much the first thing I install on any new Mac.

First off add the following taps to your Homebrew

brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php

Then install PHP

brew install php54

Just ensure you have your $PATH set up correctly in your .bash_profile or .zshrc so that the Homebrew binaries are used instead of the system ones.