Created
December 7, 2012 21:34
-
-
Save julianbonilla/4236724 to your computer and use it in GitHub Desktop.
Apache on Mac OS X Mountain Lion
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
mkdir ~/Sites | |
# Add user Sites directory to Apache config | |
cd /etc/apache2/users | |
sudo cp Guest.conf `whoami`.conf | |
sudo emacs `whoami`.conf | |
## M-x replace-string Guest with: YOUR_USERNAME | |
## M-x replace-string AllowOverride None with: AllowOverride All | |
## C-x C-s | |
## C-x C-c | |
# Start Apache | |
sudo apachectl start | |
# Stop Apache | |
sudo apachectl stop | |
# Start Apache on startup | |
sudo defaults write /System/Library/LaunchDaemons/org.apache.httpd Disabled -bool false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment