Skip to content

Instantly share code, notes, and snippets.

@caycefischer
Created July 26, 2012 07:53
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save caycefischer/3180835 to your computer and use it in GitHub Desktop.
Save caycefischer/3180835 to your computer and use it in GitHub Desktop.
Apache Setup (Mountain Lion)
# a script following this guide:
# http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion
# for enabling apache on OS X Mountain Lion
# ---
#start up apache
sudo apachectl start
# create ~/Sites
mkdir ~/Sites
# create user.conf
sudo cp ~/.dotfiles/zakkain.conf /etc/apache2/users
# restart apache
sudo apachectl restart
# ---
# config php
cd /etc/apache2
sed -i 's,#\(LoadModule php5_module libexec/apache2/libphp5.so\),\1,g' httpd.conf
#'s/#LoadModule php5_module libexec\/apache2\/libphp5.so/LoadModule php5_module libexec\/apache2\/libphp5.so/' httpd.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment