I’m trying to setup my rails application with Light+fcgi.
This is the error I’m getting when I try to start Lighttpd :
============
[getcapture@alpha getcapture]$ ~/etc/rc.d/lighttpd.sh start
Starting Lighttpd
2006-04-15 11:27:24: (mod_fastcgi.c.1022) execve failed for:
/home/getcapture/application/public/dispatch.fcgi No such file or
directory
[getcapture@alpha getcapture]$ 2006-04-15 11:27:24:
(mod_fastcgi.c.1048) the fastcgi-backend
/home/getcapture/application/public/dispatch.fcgi failed to start:
2006-04-15 11:27:24: (mod_fastcgi.c.1052) child exited with status 2
/home/getcapture/application/public/dispatch.fcgi
2006-04-15 11:27:24: (mod_fastcgi.c.1055) if you try do run PHP as
FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing ‘php -v’ and it
should display ‘(cgi-fcgi)’ in the output, NOT (cgi) NOR (cli)
For more information check
http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program
2006-04-15 11:27:24: (mod_fastcgi.c.1060) If this is PHP on Gentoo add
fastcgi to the USE flags
2006-04-15 11:27:24: (mod_fastcgi.c.1356) [ERROR]: spawning fcgi failed.
2006-04-15 11:27:24: (server.c.834) Configuration of plugins failed.
Going down.
I’m not giving relative path to lighttpd.conf here. Other useful
information might be :
============
[getcapture@alpha getcapture]$ ls -al
/home/getcapture/application/public/dispatch.fcgi
-rwxr-xr-x 1 getcapture getcapture 879 Apr 15 11:06
/home/getcapture/application/public/dispatch.fcgi
[getcapture@alpha getcapture]$ cat
/home/getcapture/application/public/dispatch.fcgi
#!/usr/bin/ruby
[getcapture@alpha getcapture]$ /usr/bin/ruby -v
ruby 1.8.4 (2005-12-24) [i686-linux]
fastcgi.server = ( “.fcgi” =>
( “localhost” =>
( “socket” => base + “/var/run/application.socket”,
“min-procs” => 1,
“max-procs” => 2,
“bin-path” => base + “/application/public/dispatch.fcgi”,
“bin-environment” => ( “RAILS_ENV” => “production” )
)
)
)
Using Rails 1.1.2 and Lighttpd 1.4.11.
Please help !
Thanks,
Pratik
http://www.freeonrails.com - Free as in beer !