Created
July 26, 2012 07:53
-
-
Save caycefischer/3180835 to your computer and use it in GitHub Desktop.
Apache Setup (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
# 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