# Dispatch.fcgi won't work

**URL:** <https://www.ruby-forum.com/t/dispatch-fcgi-wont-work/110912>\
**Category:** Deployment\
**Created:** [July 31, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/dispatch-fcgi-wont-work/110912 "2007-07-31T23:55:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bcef8e/32.png) [@bartek](https://www.ruby-forum.com/u/bartek)\
**Post date:** [July 31, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/dispatch-fcgi-wont-work/110912/1 "2007-07-31T23:55:03Z")

</div>

Here’s what’s going on:

(23:51)bartek@ariel:~/dev/rails/scores$ ruby script/server  
=\> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> 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  
/home/bartek/dev/rails/scores/public/dispatch.fcgi  
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  
[http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program](http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program)  
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.  
Exiting  
Couldn’t find any pid file in ‘/home/bartek/dev/rails/scores/tmp/pids’  
matching ‘dispatch.[0-9]\*.pid’  
(also looked for processes matching  
“/home/bartek/dev/rails/scores/public/dispatch.fcgi”)  
(23:52)bartek@ariel:~/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?
