Dispatch.fcgi won't work

Here’s what’s going on:

(23:51)[email protected]:~/dev/rails/scores$ ruby script/server
=> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)
=> Rails application starting on
=> Call with -d to detach
=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)
2007-07-31 23:52:52: (mod_fastcgi.c.998) execve failed for:
/home/bartek/dev/rails/scores/public/dispatch.fcgi Permission denied
2007-07-31 23:52:52: (mod_fastcgi.c.1024) the fastcgi-backend
/home/bartek/dev/rails/scores/public/dispatch.fcgi failed to start:
2007-07-31 23:52:52: (mod_fastcgi.c.1028) child exited with status 13
2007-07-31 23:52:52: (mod_fastcgi.c.1031) 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
2007-07-31 23:52:52: (mod_fastcgi.c.1333) [ERROR]: spawning fcgi failed.
2007-07-31 23:52:52: (server.c.849) Configuration of plugins failed.
Going down.
Couldn’t find any pid file in ‘/home/bartek/dev/rails/scores/tmp/pids’
matching ‘dispatch.[0-9]*.pid’
(also looked for processes matching
(23:52)[email protected]:~/dev/rails/scores$

I tried to downgrade lighttpd. Then I tried to get and install the
newest php and compile it according to hints in the link. Php -v shows
me “cli” only. Dispatch.fcgi has perms 755, and group “lighttpd”.

What could be wrong?