# Ruby on Rails strange issue

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-strange-issue/95445>\
**Category:** Rails\
**Created:** [June 1, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-strange-issue/95445 "2006-06-01T16:42:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![izghitu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/cc9497/32.png) [@izghitu](https://www.ruby-forum.com/u/izghitu)\
**Post date:** [June 1, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-strange-issue/95445/1 "2006-06-01T16:42:44Z")

</div>

Hello,  
I just installed Ruby on Rails and created the new repository.  
I wanted to use Ruby on Rails with FCGI  
The repository was created in /path/to/public\_html

ls /path/to/public\_html/ :  
app cgi-bin config doc log public README script  
tmp  
asd components db lib logo.jpg Rakefile README\_LOGIN test  
vendor

I installed fcgi support for ruby on rails and mod\_fastcgi for Apache  
1.3.x using a guide from the rails wiki.  
When I open in my browser [http://domain.com/public](http://domain.com/public) I get a 404 error  
saying:  
[Thu Jun 1 07:07:03 2006] [error] [client IP] FastCGI: invalid  
(dynamic) server “/path/to/public\_html/dispatch.fcgi”: script not found  
or unable to stat()

I am wondering why it searches for dispatch.fcgi in /path/to/public\_html  
if its located in /path/to/public\_html/public ?

I tried and copied the contents of /path/to/public\_html/public to  
/path/to/public\_html and after doing that I receive another error when  
opening in my browser [http://domain.com/public](http://domain.com/public) :

[Thu Jun 1 07:14:18 2006] [error] [client IP] FastCGI: comm with  
(dynamic) server “/path/to/public\_html/dispatch.fcgi” aborted: (first  
read) idle timeout (30 sec)  
[Thu Jun 1 07:14:18 2006] [error] [client IP] FastCGI: incomplete  
headers (0 bytes) received from server  
“/path/to/public\_html/dispatch.fcgi”

I have Fedora Core 4  
Apache 1.3.x  
Rails 1.1.2  
ruby 1.8.4  
Gem 0.8.11  
mod\_fastcgi-SNAP-0404142202 (the latest)  
fcgi devel compiled from sources 2.4.0  
FastCGI ruby binding fcgi (0.8.6.1)  
MySQL-server-4.1.12-1  
MySQL/Ruby - mysql (2.7)

Please help  
Thank you

---

<div class="post-metadata">

**Author:** ![izghitu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/cc9497/32.png) [@izghitu](https://www.ruby-forum.com/u/izghitu)\
**Post date:** [June 1, 2006, 6:08pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-strange-issue/95445/2 "2006-06-01T18:08:43Z")

</div>

Hi

I’m also on Fedora Core 4, but had to upgrade to Apache 2.x to get  
fastcgi working for my rails app.

hth

Isabelle

> I have Fedora Core 4  
> Apache 1.3.x  
> Rails 1.1.2  
> ruby 1.8.4  
> Gem 0.8.11  
> mod\_fastcgi-SNAP-0404142202 (the latest)  
> fcgi devel compiled from sources 2.4.0  
> FastCGI ruby binding fcgi (0.8.6.1)  
> MySQL-server-4.1.12-1  
> MySQL/Ruby - mysql (2.7)

---

<div class="post-metadata">

**Author:** ![izghitu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/cc9497/32.png) [@izghitu](https://www.ruby-forum.com/u/izghitu)\
**Post date:** [June 1, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-strange-issue/95445/3 "2006-06-01T18:14:53Z")

</div>

Hi again,

have you checked that the location reference (she-bang) to ruby in the  
dispatch.fcgi is correct?

---

<div class="post-metadata">

**Author:** ![izghitu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/cc9497/32.png) [@izghitu](https://www.ruby-forum.com/u/izghitu)\
**Post date:** [June 1, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-strange-issue/95445/4 "2006-06-01T18:23:55Z")

</div>

Hi,  
Yes, the location reference to ruby is correct  
Everything seems to be correct, but it does not work. Also a strange  
thing is that when I do “gem uninstall fcgi” and open ruby in the  
browser I get the same error as when gem fcgi is installed.  
And why it looks for dispatch.fcgi outside /public ?

Thanks for your reply.  
Please help
