+ -
当前位置:首页 → 问答吧 → 我在lighttpd上配置fastcgi ,用网页去访问时出现500错误

我在lighttpd上配置fastcgi ,用网页去访问时出现500错误

时间:2010-08-18

来源:互联网

我在lighttpd上配置fastcgi ,用网页去访问时出现500错误

 无法显示网页 
您要访问的网页有问题,无法显示。 

--------------------------------------------------------------------------------

请尝试以下操作:

打开 10.4.8.161 主页,然后查找指向您感兴趣信息的链接。 
单击刷新按钮,或以后再试。

单击搜索,寻找 Internet 上的信息。 
也可查看相关站点列表。 




HTTP 500 - 内部服务器错误 
Internet Explorer  
=====================================
用的lighttpd 是lighttpd 1.4.19 具体配置是:
fastcgi.server = (
  ".fastcgi"=>
  ("10.4.8.161"=>(
# "port"=>80,
  "min-procs"=>1,
  "max-procs"=>1,
  "bin-path"=>"/var/www/fcgi-bin/test.fastcgi",
# "bin-path"=>"10.4.8.161:91",
  "socket"=>"/tmp/fastcgi.socket",
  "check-local"=>"disable"
  )
),
 ".fcg" =>
  ((
  "min-procs"=>1,
  "max-procs"=>1,
  "socket"=>"/tmp/fcg.socket",
  "bin-path"=>"/var/www/fcgi-bin/count.fcg",
  "check-local"=>"disable"
  )
  ),
 ".php" =>
  ((
  "bin-path" => "/usr/bin/php-cgi",
  "socket" => "/tmp/php.socket",
  "max-procs" => 2,
  "idle-timeout" => 20,
  "bin-environment" => (
  "PHP_FCGI_CHILDREN" => "4",
  "PHP_FCGI_MAX_REQUESTS" => "10000"
  ),
  "bin-copy-environment" => ( "PATH", "SHELL", "USER"
  ),
  "broken-scriptfilename" => "enable"
  ))
================================================================
去看log文件,里面显示:
2010-08-18 15:03:35: (mod_fastcgi.c.1761) connect failed: Connection refused on unix:/tmp/fcg.socket-0 
2010-08-18 15:03:35: (mod_fastcgi.c.2930) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1 
2010-08-18 15:03:35: (response.c.116) Response-Header: 
HTTP/1.1 500 Internal Server Error
Content-Type: text/html
Content-Length: 369
Date: Wed, 18 Aug 2010 07:03:35 GMT
Server: lighttpd/1.4.19


请问如何解决

作者: xindeluoye   发布时间: 2010-08-18

我已经解决。

作者: xindeluoye   发布时间: 2010-08-18