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.

Ruby On Rails - Working, but not via cpanel

Discussion in 'General Discussion' started by innerfire, Nov 1, 2007.

  1. innerfire

    innerfire Registered

    Joined:
    Oct 20, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have apache 2.2 installed as well as mongrel. I have no problem at all starting and running my scripts from the command line via mongrel, but am unable to run them via cpanel. What are the prerequisites for building rails aps to run via cpanel? What type of environment does it by default want to launch them in? I've installed enough rails aps to know that there are so many potential environmental variables, and clearly cPanel at this time has a preference and I either broke it by installing mongrel, or I didn't install something in apache it is wanting to see.
     
  2. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Did you ever find the answer for this? I belive it is Mongrel that the default cPanel version spawns. There are mongrel processes running on our machines running cPanel RoR.
     
  3. deddy

    deddy Well-Known Member

    Joined:
    Oct 13, 2003
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    Hello,
    we have also a problem with mongrel.

    cPanel:
    App Status not running. Actions: Run
    Not possible. cPanel hangs.
    CPU usage on mongrel 99 % /usr/bin/ruby /usr/bin/mongrel_r
    kill -9 PID is necessary.

    On all accounts. Gems are installed. CentOS5. :confused:
     
  4. deddy

    deddy Well-Known Member

    Joined:
    Oct 13, 2003
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    Here the complete installation process :

    a) /scripts/installruby
    (unfortunately it is currently not perfect, no idea why)

    b) gem install rails

    c) gem install mongrel

    if fastthread isn't installed (normally you will be asked
    for fastthread during mongrel installation)

    d) gem install fastthread

    Don't forget to open firewall ports 3000 and 12001

    Now everthing seems to be running fine on CentOS5 :)
     
  5. xyzed

    xyzed Member

    Joined:
    Aug 6, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Thanks deddy, worked a treat :)
     
Loading...

Share This Page