Skip to content

Instantly share code, notes, and snippets.

@rduarte
Created May 31, 2010 14:11
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 rduarte/419864 to your computer and use it in GitHub Desktop.
Save rduarte/419864 to your computer and use it in GitHub Desktop.
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
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz
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
# MySQL
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