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.
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.
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
[root@server ~]# rpm -qa|grep -i ruby rubygem-json-1.7.7-29.el7.x86_64 ruby-irb-22.214.171.1248-29.el7.noarch rubygems-126.96.36.199-29.el7.noarch rubygem-bigdecimal-1.2.0-29.el7.x86_64 rubygem-psych-2.0.0-29.el7.x86_64 ruby-devel-188.8.131.528-29.el7.x86_64 rubygem-rdoc-4.0.0-29.el7.noarch ruby-184.108.40.2068-29.el7.x86_64 rubygem-io-console-0.4.2-29.el7.x86_64 rubygem-rake-0.9.6-29.el7.noarch ruby-libs-220.127.116.118-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
Also, you can read more about the usage and creation of Ruby on Rails application from the following reference links.
If you like this post and wish to receive more articles from us, please like our FB page: Grepitout
Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.
For more details on our services, please drop us an E-mail at firstname.lastname@example.org