Well, after many hours of tinkering and internet browsing I just can’t
get Fast CGI to work with Rails and Apache 1.3 on FreeBSD 5.4 Normal CGI
works fine, but as soon as I enable FastCGI in .htaccess I get the
Rails application failed to start properly
Here’s what I’ve done so far:
I’ve installed all the necessary software for rails and fast cgi.
FastCGI does seem to be configured correctly in the apache config
file. I’ve added the necessary virtual host settings and other apache
directives, as per the instructions on the Rails wiki.
In .htaccess I changed
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
Cleared out rails related temporary files from /tmp.
I’ve restarted apache.
I’ve restarted my browser.
I’ve made sure dispatch.fcgi contains the line “require
‘fcgi_handler’” (without quotes, of course).
I set the /log directory permissions to 755. Heck, I even set the
entire rails directory to 777 (it’s on a local intranet, so security
isn’t a big issue right now).
But despite my best efforts I’m not getting any love from rails and fast
cgi, and I’m completely stuck. Any help would be GREATLY appreciated.