Skip to content

Instantly share code, notes, and snippets.

@julianbonilla
Created December 7, 2012 21:34
Show Gist options
  • Save julianbonilla/4236724 to your computer and use it in GitHub Desktop.
Save julianbonilla/4236724 to your computer and use it in GitHub Desktop.
Apache on Mac OS X Mountain Lion
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