Lighttpd with FastCGI won't create /tmp/fcgi.sock on startup?

Posted by Marlon on Server Fault See other posts from Server Fault or by Marlon
Published on 2011-03-11T18:53:38Z Indexed on 2014/08/23 10:23 UTC
Read the original article Hit count: 293

Filed under:
|
|
|
|

I'm running lighttpd-1.4.19 on a debian 5 box and try to run web2py with fastcgi. The problem with that is, that lighttpd does not create the socket file /tmp/fcgi.sock.

If I'm creating the file by myself

 touch /tmp/fcgi.sock

lighttpd will start but will throw this error after some time running:

unexpected end-of-file (perhaps the fastcgi process died): pid: 0 socket: unix:/tmp/fcgi.sock

My config looks like this:

fastcgi.server = (
  "/handler_web2py.fcgi" => (
      "handler_web2py" => ( #name for logs
        "check-local" => "disable",
        "socket" => "/tmp/fcgi.sock",
        "idle-timeout" => 20,
        "max-procs" => 1
      )
   ),
)

Is there any known problem with running lighttpd on debian 5?

Thanks for any help.

I have pasted the whole lighttpd config: http://pastie.org/1660646

© Server Fault or respective owner

Related posts about debian

Related posts about python