Install Ruby on Rails in cPanel

To install Ruby on Rails in cPanel, you just need to run the following cPanel script on the server. 

/scripts/installruby

This will install Ruby on Rails on the server and enables RubyGems interface in the cPanel account. You can access it via cPanel >> Software >> RubyGems

You need to run the following command once the installation is completed. It will activate Ruby on Rails when the server starts.

/usr/local/cpanel/bin/ror_setup

Make sure that you open the appropriate ports on your server firewall after the installation of Ruby. Generally, Ruby applications begin on port 12001. If you enabled another Ruby on Rails application, it will use the port 12002. That is, the port numbers automatically increment if you enable a new Ruby application.

Uninstall Install Ruby on Rails

To determine whether Ruby exists on your server, run the following command:

rpm -qa|grep -i ruby

Example:

[root@server ~]# rpm -qa|grep -i ruby
rubygem-json-1.7.7-29.el7.x86_64
ruby-irb-2.0.0.648-29.el7.noarch
rubygems-2.0.14.1-29.el7.noarch
rubygem-bigdecimal-1.2.0-29.el7.x86_64
rubygem-psych-2.0.0-29.el7.x86_64
ruby-devel-2.0.0.648-29.el7.x86_64
rubygem-rdoc-4.0.0-29.el7.noarch
ruby-2.0.0.648-29.el7.x86_64
rubygem-io-console-0.4.2-29.el7.x86_64
rubygem-rake-0.9.6-29.el7.noarch
ruby-libs-2.0.0.648-29.el7.x86_64
[root@server ~]#

To remove the above listed packages, run the following command:

rpm -qa|grep -i ruby | xargs rpm e --nodeps

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)