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:
- PHP (including phpMyAdmin and ionCube)
- 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:
- 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.
- To start the A2 QuickInstaller, type the following command, and then press ENTER:
- Under Application Installers, type the option number for Web/Application Servers, and then press ENTER.
- 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.
- 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:
- At the command prompt, type the following command, replacing example.com with your system's domain name:
Type the following commands, pressing ENTER after each command:
rails new myapp
rails server -d
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
- Application Servers
You can use the A2 QuickInstaller to install a wide variety of application servers with just a few keystrokes. You can install a LAMP stack, nginx, and more.
- Apache, MySQL/MariaDB, and PHP
One of the first things many people install on a new system is a LAMP (Linux, Apache, MySQL or MariaDB, and PHP) stack. Learn how to install one quickly and easily using the A2 QuickInstaller here.
- Apache, PostgreSQL, and PHP
The LAPP (Linux, Apache, PostgreSQL, and PHP) stack is an alternative to the LAMP stack. You can install a LAPP stack using the A2 QuickInstaller.
- Apache Tomcat
You can use the A2 QuickInstaller to install the Apache Tomcat web server on your system.