I am trying to get Rails running through Lighttpd, on a Suse 10 box
running Rails 1.0.0 and Lighttpd 1.4.10
I followed the instructions in the wiki
(Peak Obsession) but keep getting the
same error:
linux:/etc/lighttpd # lighttpd -f lighttpd.conf
2006-02-27 12:32:17: (mod_fastcgi.c.997) execve failed for:
/home/nathan/rails/notifications/public/dispatch.fcgi No such file or
directory
linux:/etc/lighttpd # 2006-02-27 12:32:17: (mod_fastcgi.c.1023) the
fastcgi-backend /home/nathan/rails/notifications/public/dispatch.fcgi
failed to start:
2006-02-27 12:32:17: (mod_fastcgi.c.1027) child exited with status 2
/home/nathan/rails/notifications/public/dispatch.fcgi
2006-02-27 12:32:17: (mod_fastcgi.c.1030) 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-fa
stcgi-program
2006-02-27 12:32:17: (mod_fastcgi.c.1035) If this is PHP on Gentoo add
fastcgi to the USE flags
2006-02-27 12:32:17: (mod_fastcgi.c.1325) [ERROR]: spawning fcgi failed.
2006-02-27 12:32:17: (server.c.834) Configuration of plugins failed.
Going down.
This is my lighttpd.conf file:
#--------------------------
server.port = 80
server.modules = ( “mod_rewrite”, “mod_fastcgi”, “mod_redirect” )
server.document-root = “/home/nathan/rails/notifications/public”
fastcgi.server = (“.fcgi” => ( “railsapp” =>
( “min-procs” => 1,
"max-procs" => 5,
"socket" => "/tmp/ruby-railsapp.fcgi",
"bin-path" =>
“/home/nathan/rails/notifications/public/dispatch.fcgi”
)
))
server.indexfiles = ( “index.html” )
server.error-handler-404 = “/dispatch.fcgi”
#------------------------------
Dispatch.fcgi is definitely in the /public directory.
Can anyone help out and point me in the right direction?
Thanks!
Nathan M.
Operations Director
Northeast Region
Pilgrim IT, LLC
NORTHEAST OFFICE
1 Short Street
Northampton, MA 01060
TEL 866.434.4976
FAX 413.587.0572
NOTICE: This email and any attachments are intended only for the
addressee and may contain information that is confidential and/or
legally privileged. If you are not the intended recipient or have
received this email in error, please notify the sender by return email
or by calling 866-434-4976. You should then delete the message and any
attachments or copies. If you are not the intended recipient, you are
prohibited from retaining, distributing, disclosing or using any
information contained herein.