Skip to Content
Shared hosting (cPanel)Using cPanelSoftware

Ruby on Rails

Important

This interface was removed in version 136 of cPanel & WHM. This article is kept for reference in case you're using an older version.

This interface lets you create and deploy a Ruby on Rails® application.

Note

The server administrator must enable this feature for you. We recommend reviewing the Ruby on Rails documentation before deploying any application.

Create a Ruby on Rails application

Ask the Illevante team to install Ruby through two EasyApache 4 modules: ea-apache24-mod_env and ea-ruby24-ruby-devel.

Create a Ruby application on your server.

Use the Application Manager interface to register the application.

Create a rewrite

Because Ruby on Rails uses its own server and doesn't respond on the standard HTTP port (80), visitors must specify the port through which they can reach your application (for example, example.com:12001).

Important

Ruby application port numbers increase automatically with each new application. On shared servers, the system assigns the next available port number to your application, so your first application may not be on port 12001 exactly.

To configure Ruby to respond without visitors having to specify the port number, create a rewrite:

In the create rewrite table, click Create Rewrite next to the application you want.

Choose the domain, subdomain or addon domain you want to run the Ruby application on.

To run the application from a new page within your domain, enter the page name in the box provided.

Click Save.

In the existing rewrites table, you can edit the application path and click Save, or click Delete to remove a rewrite.

Additional applications and rewrites

To run several Ruby applications, you must configure additional ports for them to respond on, and additional rewrites where needed to hide the port change. Follow the same application creation steps to add another Rails application (it will respond on the next available port), and the same rewrite steps using a domain, subdomain, addon domain, or new page (such as example.com/RubyApplication).

Important

Ruby application port numbers may not be sequential. You can't configure two Ruby applications to respond on the same domain, subdomain, addon domain, or page.

Note for resellers and hosting providers

Hosting providers can limit the number of Rails applications their customers can install from WHM's Modify an Account interface: select the domain you want to limit, enter the maximum in the Max Mongrel instances (Ruby on Rails) box, then click Save.

How is this guide?

On this page