Skip to content

Instantly share code, notes, and snippets.

@sminnee
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sminnee/bdaaf855437a28841824 to your computer and use it in GitHub Desktop.
Save sminnee/bdaaf855437a28841824 to your computer and use it in GitHub Desktop.
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install php54 --with-apache --without-snmp --with-tidy
# Follow the instructions for enabling php54 on Apache
brew install mysql
# Now edit the Apache config
sudo nano /etc/apache2/httpd.conf
Change these lines:
User (username)
Group (staff)
DocumentRoot /Users/(username)/Sites
<Directory "/Users/(username)/Sites">
...
Options FollowSymLinks Multiviews Indexes
...
AllowOverride All
...
# - Change DocumentRoot and the Directory line below it to point to your sites folder
# - Run Apache as yourself - the "User" and "Group" Settings
# - Confirm that PHP module is being
# Edit ~/.profile and change the path to include the relevant binaries
# This will make sure that Homebrew PHP is used on the command-line
nano ~/.profile
# Add this line
export PATH="/usr/local/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment