I’m trying to get Ruby on Rails running on an Apache 1.3 server with
mod_fastcgi and I’m oh-so-close. When I run my application with this
line in public/.htaccess it works fine. Unusably slow, but fine.
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
However, when I change it to:
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
It doesn’t work at all, and returns the default “Application Error”.
After going through my Apache error log I found the following two lines
which would probably explain everything if I knew what they meant:
[alert] [client 220.127.116.11] (2)No such file or directory: FastCGI:
failed to connect to (dynamic) server
“/home/sites/home/web/railsapp/public/dispatch.fcgi”: something is
seriously wrong, any chance the socket/named_pipe directory was
removed?, see the FastCgiIpcDir directive
[error] [client 18.104.22.168] FastCGI: incomplete headers (0 bytes)
received from server
My apache config looks like this:
FastCgiConfig -idle-timeout 900 -initial-env RAILS_ENV=development
AddHandler fastcgi-script .fcg .fcgi .fpl
/tmp/fastcgi/ is owned by Apache, and its permissions are set to 755. I
also tried deleting all sessions from /tmp but to no avail.
Has anyone come across a similar error and been able to find a fix?
I’ve Googled it but I can’t find much. I’m a pretty big newbie when it
comes to Apache and frankly I’m surprised I’ve gotten as far as I have,
so anyone that can help me get over this last hurdle will pretty much be
Thanks in advance,