Skip to content

Instantly share code, notes, and snippets.

@heldr
Forked from caycefischer/apacheSetup
Created August 17, 2012 19:26
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 heldr/3381791 to your computer and use it in GitHub Desktop.
Save heldr/3381791 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