[问题]lighttpd 下rails 启动不了
发表于 : 2008-02-21 20:22
这个是给出的错误信息* Stopping web server lighttpd [ OK ]
* Starting web server lighttpd [ OK ]
cai@lover:~/www/rails/demo/public$ 2008-02-21 20:23:05: (mod_fastcgi.c.1043) the fastcgi-backend /home/cai/www/rails/demo/public/dispatch.fcgi failed to start:
2008-02-21 20:23:05: (mod_fastcgi.c.1047) child exited with status 1 /home/cai/www/rails/demo/public/dispatch.fcgi
2008-02-21 20:23:05: (mod_fastcgi.c.1050) 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 ... -programIf this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2008-02-21 20:23:05: (mod_fastcgi.c.1354) [ERROR]: spawning fcgi failed.
2008-02-21 20:23:05: (server.c.895) Configuration of plugins failed. Going down.
这里是rails的配置$HTTP["host"] =="rails"{
server.document-root = "/home/cai/www/rails/demo/public/"
url.rewrite = ( "^/$"=>"index.html","^([^.]+)$"=> "$1.html")
server.error-handler-404 = "/dispatch.fcgi"
fastcgi.server = ( ".fcgi" =>
("rails"=>
("min-procs"=> 2,
"max-procs"=> 2,
"socket"=> "/tmp/rails.fcgi.socket",
"bin-path"=> "/home/cai/www/rails/demo/public/dispatch.fcgi",
"bin-environment"=> ( "RAILS_ENV" => "development")
)
)
)
}
到底哪里错了?