Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anithegregorian/ddf62784ceb33ac6aad91aae0f77d5fb to your computer and use it in GitHub Desktop.
Save anithegregorian/ddf62784ceb33ac6aad91aae0f77d5fb to your computer and use it in GitHub Desktop.
LAMP stack on OSX with Homebrew, built-in Apache, multiple PHP versions, VirtualhostX optional

Run the following Homebrew commands to install PHP and MySQL

brew update

brew install php56

brew install mysql

mysql.server start

test with /usr/local/Cellar/php56/5.6.0/bin/php --version (test) edit ~/.config/fish/fish.config or ~/.bash_profile add the line alias php='/usr/local/Cellar/php56/5.6.0/bin/php' test with php --version (should yield PHP 5.6.0 (cli))

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