Skip to content

Instantly share code, notes, and snippets.

@KendallHopkins
Created December 13, 2011 22:48
Show Gist options
  • Save KendallHopkins/1474308 to your computer and use it in GitHub Desktop.
Save KendallHopkins/1474308 to your computer and use it in GitHub Desktop.
SOURCE_FOLDER=~/SUF
//Install Xcode
http://itunes.apple.com/us/app/xcode/id448457090?mt=12
//checkout source
git clone git@github.com:SimpleUpdates/SUFramework.git $SOURCE_FOLDER --recursive
//clean /opt
rm -Rf /opt
svn co http://svn.macports.org/repository/macports/trunk/base /tmp/macport && \
cd /tmp/macport && \
./configure && \
make && \
sudo make install && \
sudo port -v selfupdate
## go make some tea, seriously this will take a while
sudo port install php5 +apache2 nodejs mysql5-server git-core php5-apc php5-calendar php5-curl php5-ftp php5-gd php5-gettext php5-mbstring php5-mysql php5-openssl php5-pcntl php5-pear php5-posix php5-soap php5-sockets php5-xdebug
//configure apache
sudo bash -c "echo 'LoadModule php5_module modules/libphp5.so' >> /opt/local/apache2/conf/httpd.conf"
sudo bash -c "echo 'Include conf/extra/mod_php.conf' >> /opt/local/apache2/conf/httpd.conf"
EDIT: /opt/local/apache2/conf/httpd.conf
UNDER <Directory "/opt/local/apache2/htdocs"> @ ~line #214
AllowOverride None -> AllowOverride All
sudo mv /opt/local/apache2/htdocs /opt/local/apache2/htdocs_old
sudo ln -s $SOURCE_FOLDER /opt/local/apache2/htdocs
sudo curl -o /opt/local/etc/php5/php.ini http://dl.dropbox.com/u/9535/php.ini
sudo port load apache2
//configure mysql
sudo -u _mysql mysql_install_db5
sudo port load mysql5-server
/opt/local/lib/mysql5/bin/mysqladmin -u root create su
curl -o /tmp/su.sql http://dl.dropbox.com/u/9535/su3.sql
mysql5 --user root --database=su < /tmp/su.sql
/opt/local/lib/mysql5/bin/mysqladmin -u root password 'password'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment