Rails via Lighttpd

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
(http://wiki.rubyonrails.com/rails/pages/Lighttpd) 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

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

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

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" =>




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?


Nathan M.

Operations Director

Northeast Region

Pilgrim IT, LLC


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.

On Mon, Feb 27, 2006 at 12:32:29PM -0500, Nathan M. wrote:

/home/nathan/rails/notifications/public/dispatch.fcgi No such file or

Try running this path manually on the command line. Ten bucks to a
penny dispatch.fcgi either isn’t there or the shebang points to a Ruby
interpreter that doesn’t exist.

  • Matt

A byte walks into a bar and orders a pint. Bartender asks him “What’s
wrong?” The byte says “Parity error.” Bartender nods and says “Yeah, I
thought you looked a bit off.”