Fedora Core 4, Apache2, Ruby on Rails and FastCGI
FastCGI (or in my case, mod_fcgid plus the FastCGI dev kit) runs the script public/dispatch.fcgi in your Rails application. If you're having problems getting it to run right, try this.
The dispatch.fcgi script normally looks like this:
#!/usr/bin/rubyEdit it so that it looks like this:
require File.dirname(__FILE__) + "/../config/environment"
require 'fcgi_handler'
RailsFCGIHandler.process!
#!/usr/bin/rubyThat one change might make it work right for you.
require File.dirname(__FILE__) + "/../config/environment"
FCGI_PURE_RUBY = true
require 'fcgi_handler'
RailsFCGIHandler.process!