Stuart Hungerford
2005-Jul-28 02:07 UTC
Rails+Apache 2+FastCGI on Fedora Core 3 Linux: Has anyone got it working well?
Hi All,
I have a Rails application that needs to be served from a
Fedora Core 3 Linux server. The application runs well as a
"plain" CGI application.
My next step was to speed things up with FastCGI installed
via "gem install fcgi". (version 0.8.6.1).
That approach lead to this error in the fastcgi.crash.log:
Dispatcher failed to catch: undefined method `is_cgi?'' for
FCGI:Class
(NoMethodError)
The next thing I tried was removing the fcgi gem and manually
installing fcgi 0.8.6 from a .tar.gz download. That fixed the
error, but now I''m seeing in the server log:
[Wed Jul 27 11:08:51 2005] [error] [client 150.203.5.176] FastCGI:
incomplete headers (0 bytes) receive
d from server "/projects/epinet/website/current/public/dispatch.fcgi"
[Thu Jul 28 10:54:23 2005] [error] [client 150.203.5.176] FastCGI: server
"/projects/epinet/website/current/public/dispatch.fcgi" stderr:
(erb):32:
warning: already initialized constant Dimg, referer: http:
//example.org/...
Can someone tell me if this is expected FastCGI/fcgi behaviour I''m
seeing, or if I''ve gotten the installation messed up somehow?
Has anyone gotten Rails+Apache 2+FastCGI+fcgi working well on
FC3? Can you share your experiences in setting everything up?
Cheers,
Stu
Toby Boudreaux
2005-Jul-28 14:25 UTC
Re: Rails+Apache 2+FastCGI on Fedora Core 3 Linux: Has anyone got it working well?
Is the box running SELinux? Do you have access to /var/log/messages? If so, can you grep for "avc" and see if you have any relevant messages? If SELinux is enabled, you''re most likely hitting a problem with the HTTPD policy. I''m still trying to write a solid patch to allow FastCGI access on one of my boxes, as I''m not willing to turn off something as great as SELinux for a Web framework. :) On Jul 27, 2005, at 10:07 PM, Stuart Hungerford wrote:> Hi All, > > I have a Rails application that needs to be served from a > Fedora Core 3 Linux server. The application runs well as a > "plain" CGI application. > > My next step was to speed things up with FastCGI installed > via "gem install fcgi". (version 0.8.6.1). > > That approach lead to this error in the fastcgi.crash.log: > > Dispatcher failed to catch: undefined method `is_cgi?'' for > FCGI:Class > (NoMethodError) > > The next thing I tried was removing the fcgi gem and manually > installing fcgi 0.8.6 from a .tar.gz download. That fixed the > error, but now I''m seeing in the server log: > > [Wed Jul 27 11:08:51 2005] [error] [client 150.203.5.176] FastCGI: > incomplete headers (0 bytes) receive > d from server "/projects/epinet/website/current/public/dispatch.fcgi" > [Thu Jul 28 10:54:23 2005] [error] [client 150.203.5.176] FastCGI: > server "/projects/epinet/website/current/public/dispatch.fcgi" > stderr: (erb):32: warning: already initialized constant Dimg, > referer: http: > //example.org/... > > Can someone tell me if this is expected FastCGI/fcgi behaviour I''m > seeing, or if I''ve gotten the installation messed up somehow? > > Has anyone gotten Rails+Apache 2+FastCGI+fcgi working well on > FC3? Can you share your experiences in setting everything up? > > Cheers, > > Stu > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >