Apache (vhost) + ruby on rails = problems


#1

Web error:
Application error
Rails application failed to start properly"

Log File:
[Wed Jan 4 16:38:52 2006] [error] [client 192.168.20.81] FastCGI: comm
with server “/usr/home/mhale/hieraki-1.0.2/public/dispatch.fcgi”
aborted: idle timeout (60 sec)
[Wed Jan 4 16:38:52 2006] [error] [client 192.168.20.81] FastCGI:
incomplete headers (0 bytes) received from server
“/usr/home/mhale/hieraki-1.0.2/public/dispatch.fcgi”
[Wed Jan 4 16:39:06 2006] [error] [client 192.168.20.81] FastCGI: comm
with server “/usr/home/mhale/hieraki-1.0.2/public/dispatch.fcgi”
aborted: idle timeout (60 sec)
[Wed Jan 4 16:39:06 2006] [error] [client 192.168.20.81] FastCGI:
incomplete headers (0 bytes) received from server
“/usr/home/mhale/hieraki-1.0.2/public/dispatch.fcgi”
[Wed Jan 4 16:42:00 2006] [error] [client 192.168.20.81] FastCGI: comm
with server “/usr/home/mhale/hieraki-1.0.2/public/dispatch.fcgi”
aborted: idle timeout (60 sec)
[Wed Jan 4 16:42:00 2006] [error] [client 192.168.20.81] FastCGI:
incomplete headers (0 bytes) received from server
“/usr/home/mhale/hieraki-1.0.2/public/dispatch.fcgi”

If anyone has a fix for this error please help. If you need more
information please ask.

thanks


#2

update:

I upgraded to hieraki-2.0.1.

now it seems that there is a header problem:

[Thu Jan 5 19:37:12 2006] [error] (2)No such file or directory: exec of
/usr/home/mhale/hieraki-2.0.1/public/dispatch.cgi failed
[Thu Jan 5 19:37:12 2006] [error] [client 192.168.20.81] Premature end
of script headers: /usr/home/mhale/hieraki-2.0.1/public/dispatch.cgi
[Thu Jan 5 19:38:00 2006] [error] (2)No such file or directory: exec of
/usr/home/mhale/hieraki-2.0.1/public/dispatch.cgi failed
[Thu Jan 5 19:38:00 2006] [error] [client 192.168.20.81] Premature end
of script headers: /usr/home/mhale/hieraki-2.0.1/public/dispatch.cgi
[Thu Jan 5 19:41:57 2006] [error] (2)No such file or directory: exec of
/usr/home/mhale/hieraki-2.0.1/public/dispatch.cgi failed
[Thu Jan 5 19:41:57 2006] [error] [client 192.168.20.81] Premature end
of script headers: /usr/home/mhale/hieraki-2.0.1/public/dispatch.cgi


#3

check the interpreter decleration on the first line, if you were
developing on windows it may be set to #!c:\ruby\bin\rails or likewise

its should be something like
#!/usr/local/bin/ruby

check where it is on yor system by running
$> whereis ruby

from a command line