Instantly share code, notes, and snippets.

What would you like to do?
Install Ubuntu Lucid Lynx 10.04 development server with Apache2 + Ruby + Passenger + PHP5 + MySQL + SQLite3 + Imagemagick
# Update
apt-get update
apt-get dist-upgrade
# Install Apache + PHP5 + Ruby + Passenger
apt-get install libapache2-mod-passenger php5 passenger ssh build-essential apache2 apache2-mpm-prefork apache2-prefork-dev ruby1.8-dev irb libopenssl-ruby libreadline-ruby rdoc ri ruby ruby-dev
sudo a2enmod rewrite
# Install git
apt-get install git-core git-svn
# Install Rubygems
tar -xvzf rubygems-1.3.6.tgz
cd rubygems-1.3.6
ruby setup.rb
cd ..
rm -rf rubygems-1.3.6
rm -rf rubygems-1.3.6.tgz
gem update --system
# Configure passenger apps directory
mkdir /apps
cd /apps/
rails testapp
touch testapp/tmp/restart.txt
nano /etc/apache2/sites-available/testapp
# <VirtualHost *:80>
# ServerName testapp.lucid
# DocumentRoot /apps/testapp/public
# </VirtualHost>
a2ensite testapp
/etc/init.d/apache2 restart
# SQLite3
apt-get install libsqlite3-dev sqlite3 sqlite3-doc
gem install sqlite3-ruby
apt-get install libmysqlclient-dev mysql-server mysql-client libmysql-ruby
gem install mysql
# Imagemagick + rmagick
sudo apt-get install libmagick9-dev librmagick-ruby1.8 librmagick-ruby imagemagick libmagickcore-dev msttcorefonts imagemagick
sudo gem install rmagick
# Rails
gem install rails --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment