Update: None of this will work now. Homebrew has changed all of the PHP formulas and removed a bunch of stuff. Assuming you have xcode and homebrew installed and running, follow these steps. This setup will use the system Apache web server, but not the system PHP. Adjust your unix PATH environment variable to point to homebrew's bin and sbin directories in ~/.profile export PATH=/usr/local/sbin:/usr/local/bin:$PATH Add the php tap to homebrew, so it can find the various parts. brew update brew upgrade brew tap homebrew/php Start by installing php56.