Knowledge Base

How to install Ruby on Rails using the A2 QuickInstaller

This article describes how to use the A2 QuickInstaller to install a LAMP stack with Ruby on Rails 3.

The A2 QuickInstaller is no longer supported, and is only available on older VPS hosting packages. On newer VPS hosting packages, you can use Webuzo to quickly and easily install a wide range of applications and manage your server.

To check if the A2 QuickInstaller supports this application for your Linux distribution, please see this article.

Ruby on Rails requires at least 1 GB of RAM. If your VPS has only 512 MB of RAM, you must upgrade the amount of RAM before you can install Ruby on Rails.

What is installed?

When you use the A2 QuickInstaller to install Ruby on Rails, the following applications are installed:

  • MySQL
  • PHP (including phpMyAdmin and ionCube)
  • ImageMagick
  • Ruby
  • SQLite
  • Node.js
  • Gems (including Rails and Passenger)
Apache is already installed on the default VPS installation.

Installing Ruby on Rails

To install Ruby on Rails, follow these steps:

  1. Use SSH to log in to your system as the root user.
    To use the A2 QuickInstaller, you must log in as the root user using SSH. You cannot use the serial console in the VPS Control Panel to run the A2 QuickInstaller.
  2. To start the A2 QuickInstaller, type the following command, and then press ENTER:
    sh /usr/sbin/
  3. Under Application Installers, type the option number for Web/Application Servers, and then press ENTER.
  4. On the Web/Application Server Menu, type the option number for LAMP with Rails 3, and then press ENTER. The A2 QuickInstaller updates your system, and then begins the installation process.
    The installation process takes some time to complete. Do not interrupt the installation process.
  5. When installation is complete, the A2 QuickInstaller displays the directory path for your web site files.

Testing the Ruby on Rails installation

To verify the Ruby on Rails installation and create a test application, follow these steps:

  1. At the command prompt, type the following command, replacing with your system's domain name:
    cd /var/www/html/
  2. Type the following commands, pressing ENTER after each command:

    rails new myapp
    cd myapp
    rake db:create
    rails server -d
  3. The Ruby on Rails test application and server is now running. To verify this, type the following command, and then press ENTER:


    The following text appears in the Lynx browser:

    Ruby on Rails: Welcome aboard

More Information