Skip to content

Instantly share code, notes, and snippets.

@pulpfree
Last active January 1, 2016 21:19
Show Gist options
  • Select an option

  • Save pulpfree/8202559 to your computer and use it in GitHub Desktop.

Select an option

Save pulpfree/8202559 to your computer and use it in GitHub Desktop.
php install instruction for OS X Mavericks

PHP install on Fresh OS X Mavericks

Rename (or delete) existing php binaries

sudo mv /usr/bin/php /usr/bin/php.bak
sudo mv /usr/bin/php-config /usr/bin/php-config.bak
sudo mv /usr/bin/phpize /usr/bin/phpize.bak

Fetch brew taps and install php

brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install php54 --with-mysql

Resources

https://github.com/josegonzalez/homebrew-php#common-issues
http://jameshalsall.co.uk/posts/upgrading-homebrew-packages-on-osx-mavericks
http://justinhileman.info/article/reinstalling-php-on-mac-os-x/
https://gist.github.com/bobthecow/85ad6dfb594d9215b42b
http://blog.frd.mn/install-nginx-php-fpm-mysql-and-phpmyadmin-on-os-x-mavericks-using-homebrew/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment