Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    28

    Thumbs up Issues with Rails on CENTOS? This can help!

    Hey guys,

    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
    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
    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

  2. #2
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    I wish to add that if one have LIBSAFE installed he need to add /usr/bin/ruby to exception list via:
    Code:
    echo "/usr/bin/ruby" >> /etc/libsafe.exclude
    This would prevent buffer overflow errors. Enjoy!
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  3. #3
    Member
    Join Date
    Oct 2008
    Posts
    5

    Default

    Thanks, this solved the "not running" problem for me!
    Last edited by Gerto; 10-19-2008 at 02:42 PM.

  4. #4
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    You should also add

    Code:
    echo "/usr/bin/ruby-bin" >> /etc/libsafe.exclude
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. Installation Issues (CentOS 5.4 x86_64)
    By infinih in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-22-2010, 09:25 AM
  2. Centos 64 Bit and cPanel any issues ?
    By fuzioneer in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 01-16-2010, 08:24 PM
  3. Ruby on Rails mongrel issues
    By jeffleeismyhero in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-01-2008, 07:32 AM
  4. Issues on CentOS 5 after update to 11-R18450
    By DavidR in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-14-2007, 03:31 PM
  5. Are they any security issues with Ruby on Rails?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-08-2006, 02:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube