Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section


Column
width22%

Include Page
LIB:_RIG Menu
LIB:_RIG Menu


Column

Install Ruby

Multiexcerpt include
MultiExcerptNameLegacyRubyDeprecated
PageWithExcerptLIB:_Ruby via mod_passenger Warnings

Run the following command to install Ruby:

Code Block
languagebash
/usr/local/cpanel/scripts/installruby 

Post installation

After you install Ruby, make certain that you open the appropriate firewall ports for your cPanel users. By default, Ruby applications begin on port 12001. Ruby application port numbers automatically increment with each new Ruby application.

Note
titleNote:

For example, the first Ruby on Rails® application that you create on your server uses port 12001, while the second Ruby on Rails application uses port 12002.

Files and directories

The following table lists the files that the /scripts/installruby script creates:

FileDescription
/etc/init.d/rorThe initialization script for Ruby on Rails.
/usr/bin/rubyThe Ruby binary.
/usr/bin/gemThe Gem binary.

The following table lists the directories that the /scripts/installruby script creates:

DirectoryDescription
/usr/lib/ruby/The library directory for Ruby.
/root/.gem/The root directory for the entire system.



...