# Ruby on Rails on FastHosts

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-on-fasthosts/69830>\
**Category:** Rails\
**Created:** [September 24, 2006, 6:44pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-on-fasthosts/69830 "2006-09-24T18:44:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThinkWebDesign](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@ThinkWebDesign](https://www.ruby-forum.com/u/ThinkWebDesign)\
**Post date:** [September 24, 2006, 6:44pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-on-fasthosts/69830/1 "2006-09-24T18:44:09Z")

</div>

I’ve just got myself a dedicated server with FastHosts  
([www.fasthosts.co.uk](http://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?

---

<div class="post-metadata">

**Author:** ![ThinkWebDesign](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@ThinkWebDesign](https://www.ruby-forum.com/u/ThinkWebDesign)\
**Post date:** [September 24, 2006, 7:20pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-on-fasthosts/69830/2 "2006-09-24T19:20:11Z")

</div>

“ThinkWebDesign” wrote

> 

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

---

<div class="post-metadata">

**Author:** ![ThinkWebDesign](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@ThinkWebDesign](https://www.ruby-forum.com/u/ThinkWebDesign)\
**Post date:** [September 24, 2006, 8:58pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-on-fasthosts/69830/3 "2006-09-24T20:58:23Z")

</div>

Long wrote:

> > 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

---

<div class="post-metadata">

**Author:** ![ThinkWebDesign](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@ThinkWebDesign](https://www.ruby-forum.com/u/ThinkWebDesign)\
**Post date:** [September 25, 2006, 1:50am UTC](https://www.ruby-forum.com/t/ruby-on-rails-on-fasthosts/69830/4 "2006-09-25T01:50:53Z")

</div>

“ThinkWebDesign” wrote:

> > > work with apache.
> 
> 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
