Last active
August 29, 2015 14:16
-
-
Save sminnee/bdaaf855437a28841824 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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