Skip to content

Instantly share code, notes, and snippets.

@laserlemon
Created October 1, 2010 12:11
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save laserlemon/606115 to your computer and use it in GitHub Desktop.
Save laserlemon/606115 to your computer and use it in GitHub Desktop.
Snow Leopard, Homebrew, Git, RVM, Ruby, Passenger, Apache, MySQL, Memcached and ImageMagick
# 2010-10-01
#
# Mac OS X 10.6.3
# Homebrew 0.7
# Xcode 3.2.4
# Git 1.7.3.1
# RVM 1.0.12
# Ruby 1.8.7, 1.9.2
# Passenger 2.2.15
# MySQL 5.1.49
# Memcached 1.4.5
# ImageMagick 6.6.4-5
# Install Snow Leopard.
# Homebrew
ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"
echo 'export PATH=/usr/local/bin:/usr/local/sbin:$PATH' >> ~/.bash_profile
# Close Terminal window.
# Xcode
# Download Xcode from developer.apple.com because the version on the DVD is
# buggy and doesn't agree with RVM. It's a 3 GB download, so take a break or
# set up some of your personal interface preferences.
# Software Update
# You'll have to do it a few times to get back up to speed.
# Git
brew install git
brew update
brew upgrade
# RVM
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile
# Close Terminal window.
rvm install 1.8.7
rvm install 1.9.2
rvm 1.8.7 --default
# Passenger
gem install passenger
rvmsudo passenger-install-apache2-module
# Follow instructions.
# Replace "PassengerRuby" line with "PassengerRuby /Users/[user]/.rvm/bin/passenger_ruby".
rvm 1.8.7 --passenger
sudo apachectl restart
# MySQL
brew install mysql
mysql_install_db
cp /usr/local/Cellar/mysql/5.1.49/com.mysql.mysqld.plist ~/Library/LaunchAgents
mysql.server start
mysql_secure_installation
# Follow instructions.
# Memcached
brew install memcached
cp /usr/local/Cellar/memcached/1.4.5/com.danga.memcached.plist ~/Library/LaunchAgents
# ImageMagick
brew install imagemagick
@tomrossi7
Copy link

Do you just use the OSX installation of Apache?

@laserlemon
Copy link
Author

Yes, OS X Apache has always worked fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment