好的,我的CentOS6 VPS和Lighttpd就像魅力一样。我安装了Redmine,让它在Webrick上工作。当我杀死Webrick并尝试使用fastcgi在Lighttpd上托管Redmine时,我得到的唯一消息是500.我的PHP应用程序工作正常。
每次我尝试访问我的redmine时,我都会在日志文件中收到这两条消息:
(mod_fastcgi.c.2543)意外的文件结束(也许fastcgi进程死了):pid:8490 socket:unix:/tmp/redmine.socket-0
(mod_fastcgi.c.3329)未收到响应,请求发送:597 on socket:unix:/tmp/redmine.socket-0 for /dispatch.fcgi ?,关闭连接
/ tmp /是可写的,lighttpd用户拥有所有redmine文件,我的lighttpd.conf文件如下:
$HTTP["host"] =~ "redmine.domain.com" {
server.document-root = "/path/to/redmine/public"
server.errorlog = "/path/to/redmine/log/lighttpd.log"
accesslog.filename = "/path/to/redmine/log/access.log"
magnet.attract-physical-path-to = ( "/path/to/redmine/tmp/cleanurl.lua" )
fastcgi.server = ( "dispatch.fcgi" =>
((
"socket" => "/tmp/lighttpd/redmine.socket",
"bin-path" => "/usr/bin/ruby /path/to/redmine/public/dispatch.fcgi",
"max-procs" => 1,
"idle-timeout" => 20,
"kill-signal" => 9,
"bin-environment" => (
"RAILS_ENV" => "production",
"TARGET" => "/path/to/redmine/public/dispatch.fcgi"
)
))
)
}
Lighttpd重新启动正常,没有错误。
当然,/ path / to / redmine指向我的实际redmine文件夹。
软件版本:
CentOS 6 x64
Lighttpd 1.4.31
Ruby 1.8.7
Rails 3.2.6
答案 0 :(得分:2)
毕竟让它工作了。我只需要在dispatch.fcgi文件中添加两个需求,如下所示:
要求'rubygems' 要求'fcgi'
提示:他们 要转到文件的顶部,就在另一个要求之前。
/主题已关闭。