I’ve been battling with ruby configurations for days now…trying to get
either SCGI or FCGI to work on my Apache 1.3/Linux Red Hat 3 server.
I’ve pretty much gave up that battle since either of them will work with
me after trying dozens of configurations, but now even when I try to run
apps with dispatch.cgi I get this error in my log: “Premature end of
script headers: /home/mysite/mydir/rubyapp/public.dispatch.cgi”
I’ve double checked my chomd on dispatch.cgi, etc… (which is 755), my
shebang line is correct, my .htaccess is perfect, i dont get it.
I can code a full functional ruby app in 30 minutes, but then spend
about 3 days figuring out how to deploy it :-/
I’ve been battling with ruby configurations for days now…trying to get
either SCGI or FCGI to work on my Apache 1.3/Linux Red Hat 3 server.
I’ve pretty much gave up that battle since either of them will work with
me after trying dozens of configurations, but now even when I try to run
apps with dispatch.cgi I get this error in my log: “Premature end of
script headers: /home/mysite/mydir/rubyapp/public.dispatch.cgi”
When I had the same problem it was due to a different UID not being
able to read the old sessions in /tmp. Try deleting them.
Are you getting anything in your Rails log?
–
We develop, watch us RoR, in numbers too big to ignore.
same story here, but I finally got mine up and running. What do you
get when you request the file at the command line? Likely a 500
errror, but it may also tell you wha the issue is.
My problem was that the dispatch wasn’t getting the
require ‘fcgi_handler’
so I had to hand copy this from my rails gem directory to the apps lib/
directory and it all worked. Obviously not the best solution, but this
was the root of the problems.
same story here, but I finally got mine up and running. What do you
get when you request the file at the command line? Likely a 500
errror, but it may also tell you wha the issue is.