[Rails] Setting up FastCGI on Red Hat Linux

Brian L. zorander at gmail.com
Tue Feb 1 22:46:17 GMT 2005


Do you have something like this in your apache config? If not, you
probably need to put it there.
-----

LoadModule fastcgi_module     modules/mod_fastcgi.so
AddModule mod_fastcgi.c

<IfModule mod_fastcgi.c>
    FastCgiIpcDir /tmp/fcgi_ipc/
    AddHandler fastcgi-script .fcgi
</IfModule>

-----
It sounds like apache isn't configured to use fcgi. If that AddHandler
line isn't there then it won't know what to do with files with a .fcgi
extension.

Brian



On Tue, 1 Feb 2005 16:53:54 -0500, Williams, Chris
<Chris.Williams at xeroxlabs.com> wrote:
>  
> 
> I'm trying to migrate a rails app I developed on my WinXP box over to a
> Redhat Enterprise Linux box. So far I've compiled and installed Apache 2.0,
> mod_fastcgi, ruby 1.8.2, and ruby-fcgi. 
> 
> If I try to access the rails web app using the cgi dispatcher, everything is
> fine. As soon as I change the .htaccess file to use the dispatch.fcgi Apache
> keeps logging errors saying that the file
> "/var/www/rails/public/dispatch.fcgi/" does not exist. 
> 
> What could I be doing wrong here? Is it not finding the file because of that
> last slash? I tried going to http://localhost/dispatch.fcgi and Apache just
> renders the text of the script, rather than executing it. I have the
> applicable lines added to my httpd.conf and .htaccess to load the fastcgi
> module and handle .fcgi files. 
> 
> Any ideas? 
> 
> Thanks,
>  Chris 
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
> 
> 
> 


-- 
The years ahead pick up their dark bags.
They move closer. There's a slight rise in the silence

then nothing.
--
(If you're receiving this in response to mail sent to
bluczkie at andrew.cmu.edu, don't be concerned This is my new address,
but mail will be forwarded here indefinitely)


More information about the Rails mailing list