Skip to content

Instantly share code, notes, and snippets.

@rderoldan1
Created October 30, 2012 03:05
Show Gist options
  • Save rderoldan1/3978085 to your computer and use it in GitHub Desktop.
Save rderoldan1/3978085 to your computer and use it in GitHub Desktop.

Stepts to install and configure Apache, MySql, Phpmyadmin, Git, Ruby, Rails in Ubuntu

1. Apache

sudo apt-get install apache2

2. MySql

sudo apt-get install mysql-server

Set a password for the root user, please remember it.

3. phpmyadmin

sudo apt-get install phpmyadmin

Here we user the mysql root account and password, in order to manage your DB Create a "link" to use inside apache

sudo ln -s /usr/share/phpmyadmin /var/www/

4. Git

sudo apt-get install git-core

5. ruby and rubygems

sudo apt-get install ruby1.9
sudo apt-get install rubygems1.8

If you type ruby -v will see the ruby version ruby 1.8, something went wrong? Maybe, please remove ruby 1.8

sudo apt-get purge ruby1.8

Now we have the correct ruby version ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]

6. rails

sudo gem install rails

7. phusion passenger

sudo gem install passenger

Follow the installer, then install the apache module

sudo passenger-install-apache2-module

Follow the instructions and enjoy, that's all!

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