Connection refused

Hey all

Ive been getting this error…

(mod_fastcgi.c.1739) connect failed: Connection refused on
unix:/var/www/sites/stage.butlerandtanner.com/tmp/sockets/fcgi.socket-1

Anyone else seen this error before? i run IRB and get…

irb(main):001:0> require ‘fcgi.so’
=> true

irb(main):001:0> require ‘fcgi’
=> true

so i know the fastcgi bindings are working, but i when i try and run
anything through the main rails app it errors giving that output. Im
running lighttpd-1.4.11, and just trying to get rails working.

My lighty FastCGI conf is…

FastCGI plugin.conf

fastcgi.server = ( “.fcgi” =>
( servername =>
( “socket” => basedir + servername + “/tmp/sockets/fcgi.socket”,
“min-procs” => 2,
“max-procs” => 2,
“max-load-per-proc” => 4,
“idle-timeout” => 20,
“bin-path” => basedir + servername + “/public/dispatch.fcgi”,
“bin-environment” => ( “RAILS_ENV” => “production” )
)
)
)

the var server names are held in the main conf file and set like…

var.basedir = “/var/www/sites/”
var.servername = “stage.butlerandtanner.com

Can anyone help?

Thanks

Tim P.