I am new on the rails list, having signed up today, but I am in
the midst of some sticky business getting rails to go on my linux
system. I am running Fedora Core 4, with Ruby 1.8.4 and Apache 2.0.54.
I have setup the chapter 4 tutorial from the “agile book” and
everything works absolutely perfectly using Webrick. I got
rails 1.1.3 from ruby gems, and since have done an update to 1.1.4
I decided I really wanted to play with this for real and have it
run something on port 80 (and I am already running an Apache
server with two virtual hosts). This has led to no end of
headaches. At first I dove headfirst into getting mod_fcgid
setup, but then I backed off and just tried to get it to run
using plain old CGI, which is still what I am trying to do now.
To summarize in a nutshell:
Gets me the usual rails greeting page (would probably work for you too).
But this is no big deal, it is just fetching demo/public/index.html
gives me a 500 Application Error, with no information whatsoever
in the apache error_log. I do have the environment set to development.
My detailed play by play log can be found at:
If anyone is patient enough to follow along with all this and
give me a tip or two, I would sure appreciate it.
details what I learned yesterday by putting puts statements in
the code, printing interesting things and following along to
see what was blowing up. I followed it to:
And in particular the the lines:
request, response = ActionController::CgiRequest.new(cgi,
It seems that both request and response are nil, at least I get I 500
if I try to access them in some way.
Any help would be appreciated, I have spent about 3 days on this so far,
and am very much the better man for it all (I think!?), but wiser ones
out there could perhaps save me some pain.
University of Arizona – Tucson