Help me run rails on apache on Linux Fedora

Hello all,

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:

http://cholla.mmto.org/rails_work/demo/public/

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

http://cholla.mmto.org/rails_work/demo/public/say/hello

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:

http://cholla.mmto.org/computers/rubyonrails/

If anyone is patient enough to follow along with all this and
give me a tip or two, I would sure appreciate it.

In particular:

http://cholla.mmto.org/computers/rubyonrails/apache_trace.html

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:

/usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb

And in particular the the lines:

request, response = ActionController::CgiRequest.new(cgi,
session_options), ActionController::CgiResponse.new(cgi)
prepare_application
ActionController::Routing::Routes.recognize!(request).process(request,
response).out(output)

It seems that both request and response are nil, at least I get I 500
error
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.

Tom


Tom T.
MMT Observatory
University of Arizona – Tucson
[email protected]

Don’t know if you’ve found this yet, but this is the repository of all
the
various Install HowTos:

http://wiki.rubyonrails.com/rails/pages/HowtosInstallation

There are several that cover installations similar to yours.

If you work through those and still have no luck, you can try posting
your
Vhost config and your .htaccess so we can see them.

HTH,
Jeff

On Fri, Jul 21, 2006 at 08:12:37AM -0600, Jeff Everett wrote:

Don’t know if you’ve found this yet, but this is the repository of all the
various Install HowTos:

[1]http://wiki.rubyonrails.com/rails/pages/HowtosInstallation

There are several that cover installations similar to yours.

If you work through those and still have no luck, you can try posting your
Vhost config and your .htaccess so we can see them.

Thanks, I appreciate it. I am looking those over (and have used
a couple of them along the way), now slowing down and reading some
of this more carefully, but no joy yet.

This all seemed so slick with Webrick on port 3000.

This may not be an option for you, but, I found Fedora Core 5 much
easier to
set up. Though, in development mode I use mongrel instead. ( cleaner,
simpler…)
-Larry

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs