Issues with Rails on CENTOS5 and cPanel ?

I was trying to get rails to work through cPanel on Centos 5 and as many of you,
I have encountered problems too.

Here’s what made it work for me (run as
root):


1) First remove all gems

Code:
gem uninstall rails
gem uninstall mongrel
gem uninstalled fastthread

2)
Now run cPanel’s Ruby installation script

Code:
/scripts/installruby  
gem install rails
gem install mongrel
gem install fastthread

3)
Now second command as required by cPanel

Code:
/usr/local/cpanel/bin/ror_setup

4)
It seems cPanel’s "fast head" forgets to install, fast Thread
Laughing

Code:
gem install fastthread

5)
App’s don’t run still?
– The issue in my case was outdated GEM! Mongrel did
not want to run with the old version. So run:

Code:
gem update --system

6)
Restart cPanel (not required but I like to do it)

Code:
/etc/init.d/cpanel restart

And
there you have it. Works like a charm on my Centos 5

Facebook Comments

More Stuff

Introducing mod_cpanel As of the second cPanel & WHM Targeted Security Release of 2018 (TSR-2018-0002), the Optimize .htaccess feature was removed from all supported cPa...
How to measure particulate matter with a Raspberry Pi We regularly measure particulate matter in the air at our school in Southeast Asia. The values here are very high, particularly between February and M...
Google Duplex, the Human-Sounding Phone Bot, Comes to the Pixel “Uhm,” said the female voice. "Can I book a table for tomorrow?" The question came not from a person, but software called Duplex developed by Google t...
OSCommerce Security Upgrades An update to the osCommerce 2.2 Milestone 2 version has been released that addresses security related issues and bug reports that exist in the release...
Spread the love

Posted by News Monkey