Sunday 30 January 2011

How to install Ruby and Rails on cPanel

Ruby on Rails, often shortened to Rails or RoR, is an open source web application framework for the Ruby programming language. It is intended to be used with an Agile development methodology that is used by web developers for rapid development.

There is an inbuilt script in cPanel to install ruby and rails.

Login to shell using root user then execute following commands.
[root@root ~]#/scripts/installruby

[root@root ~]#gem install rails

[root@root ~]#gem install mongrel

[root@root ~]# gem install fastthread

Ruby and Rails needs some port to be open in your firewall.

If you are using IPtables then execute following commands to open ports.
iptables -A INPUT -p tcp –dport 3000 -j ACCEPT

iptables -A INPUT -p tcp –dport 12001 -j ACCEPT

Save IPtables and restart it.

Then login to WHM to check whether RoR is installed or not.

No comments:

Post a Comment