lighttpdでfastcgiモジュールがやっと動いた!!

lighttpdfastcgiを動かしたくて、インストールして実行していたら、下記のようなエラーがlogにずっと出ていた。

2009-03-17 01:45:13: (log.c.97) server started
2009-03-17 01:45:13: (mod_fastcgi.c.1051) the fastcgi-backend /home/urapico/dev/lighttpd/dispatch.fcgi failed to start:
2009-03-17 01:45:13: (mod_fastcgi.c.1055) child exited with status 13 /home/urapico/dev/lighttpd/dispatch.fcgi
2009-03-17 01:45:13: (mod_fastcgi.c.1058) If you're trying to run PHP as a FastCGI backend, make sure you're using 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://trac.lighttpd.net/trac/wiki/Docs%3AModFastCGI#preparing-php-as-a-fastcgi-programIf this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2009-03-17 01:45:13: (mod_fastcgi.c.1365) [ERROR]: spawning fcgi failed.
2009-03-17 01:45:13: (server.c.902) Configuration of plugins failed. Going down.

エラーをもとにぐぐったり、したけどなかなか解決できなかったけど、今日原因がわかりました。

fastcgiの設定項目の「bin-path」にdispatch.fcgiファイルを設定しているのだけど、そのファイルの実行権限が所有者しか実行できないようになっていただけだった。

chmod 755 dispatch.fcgiを実行したら、普通に動いた。そして、プロセスを見てみたらちゃんと常駐していのが確認できた。

よし!つぎは、lighttpdCatalystを動かしてみよう。