Topic: Going CRAZY... Permissions? Ruby path? ... GRR (dedicated Linux box)
Hi there everyone.
First post on RailsForum.com!
PLEASE HELP ME! ...
OK I just spent a good part of the last 4 days going CRAZY trying to get a Rails app to run on my server. The box is dedicated (no sharing), but it's one of those Apache 1.3 with CPANEL.
I followed what this page on the official Wiki recommends to do (although half of the page has contradictions added by people who didn't succeed with the recommendations!):
What is my problem?
Well, when I SSH into the box as "root", I can create test RB files and run them "ruby test.rb" they execute fine in the command line. Problems arise when I try to show a dynamic Rails page in the browser. The "Welcome to Rails" page loads fine, but clicking on "environment" or typing some random (or existing) controller names in the URL lead to "hanging" and waiting forever. These are apps created from the box itself ("rails testapp"), not uploaded.
I must have read every blog post and article known to man about setting the correct permissions, and am running out of options...
Looking at the server log, this is what keeps coming back.
Note: I searched online for these errors, and found that I needed to "set the right ruby path at the top of RB files" ... Well the thing is, the paths are correct (in my case it's /usr/local/bin/ruby
[Mon May 7 22:48:39 2007] [warn] FastCGI: (dynamic) server "/home/xxxxx/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Mon May 7 22:48:39 2007] [error] [client 220.127.116.11] FastCGI: incomplete headers (0 bytes) received from server "/home/xxxxx/public_html/rails/dispatch.fcgi"
[Mon May 7 22:48:39 2007] [error] [client 18.104.22.168] FastCGI: comm with (dynamic) server "/home/xxxxx/public_html/rails/dispatch.fcgi" aborted: (first read) idle timeout (240 sec)
I must admit, I am getting DIZZY trying all the various settings and combinations...
The web link to the test app is here:
What do you guys suggest?
Thanks in advance for your help.