Sockets Lighttpd和Redmine在子域上给出500个错误
好的,我的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文件如下:Sockets Lighttpd和Redmine在子域上给出500个错误,sockets,redmine,lighttpd,Sockets,Redmine,Lighttpd,好的,我的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
$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 x64Lighttpd 1.4.31
Ruby 1.8.7
轨道3.2.6
毕竟它还在工作。我只需要在dispatch.fcgi文件中添加两个requires,如下所示: 需要“rubygems”
需要“fcgi” 提示:他们必须在另一个要求之前进入文件的顶部
/主题结束。你应该将你的答案标记为已接受,这是告诉其他人你的问题已解决(或按你的意愿结束)的方式。我知道,它只是告诉我我还需要等待大约10分钟。