Ruby on Rails on FastHosts

I've just got myself a dedicated server with FastHosts
(www.fasthosts.co.uk) running Fedora Core 5, Apache 2.2, Ruby 1.8.4 and
Rails 1.1.6.

Everything works as expected using WEBrick, however, I cannot get it to
work with apache.

I've followed the step by step guides, installed FastCGI and FCGID, but
neither work. Each time I try to run my app I get a 500 error.

Has anyone managed to get Rails working with apache on a Fasthosts
server, or could anyone help me?

"ThinkWebDesign" wrote

I've just got myself a dedicated server with FastHosts
(www.fasthosts.co.uk) running Fedora Core 5, Apache 2.2, Ruby 1.8.4 and
Rails 1.1.6.

Everything works as expected using WEBrick, however, I cannot get it to
work with apache.

I've followed the step by step guides, installed FastCGI and FCGID, but
neither work. Each time I try to run my app I get a 500 error.

I would first check the Apache error_log entries. You may find EACCESS errors
on one or more of the ../log/*.log files. If this is the case make sure the owner of
the *.log files is the Apache user (either apache or nobody). I would also change
the group ownership as well.

HTH,

Long

Long wrote:

"ThinkWebDesign" wrote
>
> I've just got myself a dedicated server with FastHosts
> (www.fasthosts.co.uk) running Fedora Core 5, Apache 2.2, Ruby 1.8.4 and
> Rails 1.1.6.
>
> Everything works as expected using WEBrick, however, I cannot get it to
> work with apache.
>
> I've followed the step by step guides, installed FastCGI and FCGID, but
> neither work. Each time I try to run my app I get a 500 error.
>
I would first check the Apache error_log entries. You may find EACCESS errors
on one or more of the ../log/*.log files. If this is the case make sure the owner of
the *.log files is the Apache user (either apache or nobody). I would also change
the group ownership as well.

HTH,

Long

Thanks for that, I do seem to have a problem with EACCES errors on log
files, I have changed the permissions, an will change ownership as
well, however, I have noticed that there seems to be a more serious
error just after failure to write to logs

Dispatcher failed to catch: undefined method `in_cgi?` for FCGI class

/usr/lib/ruby/ruby_site/1.8/fcgi.rb:593:in `each_cgi`

I have no idea how to fix this, or what it means. Any help from anyone
at all would be great

"ThinkWebDesign" wrote:

Long wrote:
> "ThinkWebDesign" wrote
> >
> > I've just got myself a dedicated server with FastHosts
> > (www.fasthosts.co.uk) running Fedora Core 5, Apache 2.2, Ruby 1.8.4 and
> > Rails 1.1.6.
> >
> > Everything works as expected using WEBrick, however, I cannot get it to
> > work with apache.
> >
> > I've followed the step by step guides, installed FastCGI and FCGID, but
> > neither work. Each time I try to run my app I get a 500 error.
> >
> I would first check the Apache error_log entries. You may find EACCESS errors
> on one or more of the ../log/*.log files. If this is the case make sure the owner of
> the *.log files is the Apache user (either apache or nobody). I would also change
> the group ownership as well.
>
> HTH,
>
> Long

Thanks for that, I do seem to have a problem with EACCES errors on log
files, I have changed the permissions, an will change ownership as
well, however, I have noticed that there seems to be a more serious
error just after failure to write to logs

Dispatcher failed to catch: undefined method `in_cgi?` for FCGI class

/usr/lib/ruby/ruby_site/1.8/fcgi.rb:593:in `each_cgi`

I have no idea how to fix this, or what it means. Any help from anyone
at all would be great

Can't say that I've seen this message in my logs. This may be a side-effect
of the EACCES error, but I am not sure. I would suggest that you correct
the EACCES error, restart Apache and try again to see if the problem
goes away (fingers xed).

Long