FastCGI issues

I am attempting to get Rails running on Windows with an Apache 2 server.
I seem to be having some trouble, and in spite of my best efforts to
find a solution, I could not.

I believe that I configured Apache correctly. I have included

EnableSendfile Off
EnableMMAP Off
Win32DisableAcceptEx

FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1
-processSlack 1
-initial-env
PATH=“c:/ruby/bin;c:/windows/system32;c:/windows;C:/mysql/bin”
-initial-env RUBYOPT=rubygems

in httpd.conf per this article:

http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows

As soon as I try to access any controller the harddrive starts grinding
and Apache’s error log is spammed with

[Sat Apr 08 07:00:30 2006] [warn] FastCGI: (dynamic) server
“C:/ruby/rails/mata/public/dispatch.fcgi” has failed to remain running
for 30 seconds given 3 attempts, its restart interval has been backed
off to 600 seconds

I have tried running dispatch.fcgi from the command line, as I’ve seen
it suggested, in order to attempt to debug the problem. I get the
following error:

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in
`const_
missing’: uninitialized constant RailsFCGIHandler (NameError)
from ./dispatch.fcgi:24

The shebang line for dispatch.fcgi is

#!c:/ruby/bin/ruby

which is the correct location of the interpreter.

I hope the problem is that I overlooked something trivial - and if
that’s the case, please feel free to bonk me over the head.

Thank you in advance for any suggestions!

Alex

Looks like you missing FCGI support in Rails, you need to have fcgi.so
as well as fcgi.rb in your Ruby librairies, and you also need a DLL
called libfcgi.dll in your path.

You may want to try my Rail Prod Win setup kit:
http://rails-prod-win.sourceforge.net/

It has everything you need to run FCGI with Apache 2.2 on Windows, you
should be up and running in no time.

Gael

Should read:
Looks like you missing FCGI support in Ruby (not Rails)

Thank you! I’m going to try this out!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs