The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Issues with Rails on CENTOS? This can help!

Discussion in 'General Discussion' started by peconi, Feb 3, 2008.

  1. peconi

    peconi Active Member

    Joined:
    Mar 27, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    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. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    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!
     
  3. Gerto

    Gerto Member

    Joined:
    Oct 19, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, this solved the "not running" problem for me!
     
    #3 Gerto, Oct 19, 2008
    Last edited: Oct 19, 2008
  4. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    You should also add

    Code:
    echo "/usr/bin/ruby-bin" >> /etc/libsafe.exclude
    
     
Loading...

Share This Page