# Yet Another Apache/FastCgi Setup Issue

**URL:** <https://www.ruby-forum.com/t/yet-another-apache-fastcgi-setup-issue/63280>\
**Category:** Rails\
**Created:** [June 13, 2006, 8:58pm UTC](https://www.ruby-forum.com/t/yet-another-apache-fastcgi-setup-issue/63280 "2006-06-13T20:58:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwigal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Post date:** [June 13, 2006, 8:58pm UTC](https://www.ruby-forum.com/t/yet-another-apache-fastcgi-setup-issue/63280/1 "2006-06-13T20:58:03Z")

</div>

I have set up FastCGI on the server and added 2 servers/processes and  
increased the timeout from 30seconds to 60seconds. I _think_ I did  
that properly because I now have to wait the full 60 seconds like  
clockwork until I get the “Rails application failed to start” when I  
browse to my URL. Before it was 30 seconds like clockwork.

When I run “ruby dispatch.fcgi” I get the following:

[root@server public]# ruby dispatch.fcgi  
[root@server public]#

I used to get an error message about a plug-in issue but I  
re-installed that plug-in and the error message went away.

I also installed the fcgi gem but it gave me some error about not  
being able to create the RDoc. But it did say it installed  
successfully. I’ve also uninstalled the gem, gotten a gem-not-found  
type of error, and then reinstalled and that error went away. So, I’m  
also pretty sure I got that part done too.

I should also mention that the application also works fine when  
running in CGI. It’s just when I switch to fcgi in .htaccess when  
rails “failed to start”. I thought maybe it was the mysql  
old-style-password thing but it does work fine with the database with  
only CGI.

But, when running “ruby dispatch.fcgi” I get in fastcgi.crash.log the  
following:

\<fastcgi.crash.log\>

# Logfile created on Tue Jun 13 11:31:54 PDT 2006 by logger.rb/1.5.2.7

[13/Jun/2006:11:31:54 :: 1121] starting  
[13/Jun/2006:11:31:54 :: 1121] Dispatcher failed to catch: undefined  
method `is_cgi?' for FCGI:Class (NoMethodError) /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:593:in`each\_cgi’  
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi\_handler.rb:53:in  
`process!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in`process!’  
dispatch.fcgi:26  
almost killed by this error  
[13/Jun/2006:11:31:54 :: 1121] Dispatcher failed to catch: undefined  
method `is_cgi?' for FCGI:Class (NoMethodError) /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:593:in`each\_cgi’  
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi\_handler.rb:53:in  
`process!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in`process!’  
dispatch.fcgi:26  
killed by this error

\</fastcgi.crash.log\>

Any ideas? I am so stuck!

Jeff
