title: Starting lighttpd with fastcgi and local unix-domain socket failed
body: <p>/etc/lighttpd.conf:</p>
  
  <pre><code>...
  server.modules = (
    "mod_fastcgi"
  )
  server.username  = "_lighttpd"
  server.groupname = "_lighttpd"
  fastcgi.server = (
     ".fcgi" =&gt;
     ((
        "socket"   =&gt; "/tmp/a.out.socket",
        "bin-path" =&gt; "/tmp/a.out"
     ))
  )
  ...
  </code></pre>
  
  <p>I run as root:</p>
  
  <pre><code>spawn-fcgi -s /tmp/a.out.socket -n -u _lighttpd -g _lighttpd -U _lighttpd -G _lighttpd -- /tmp/a.out
  </code></pre>
  
  <p>ps aux:</p>
  
  <pre><code>...
  _lighttpd 28973 0.0 0.2 448 596 p1 I+ 2:33PM 0:00.01 /tmp/a.out
  ...
  </code></pre>
  
  <p>ls -ltr /tmp</p>
  
  <pre><code>-rwxr-xr-x  1 _lighttpd  _lighttpd  6992 Jul 16 13:38 a.out
  srwxr-xr-x  1 _lighttpd  _lighttpd     0 Jul 16 14:33 a.out.socket
  </code></pre>
  
  <p>Now I try to start lighttpd as root:</p>
  
  <pre><code>/usr/local/sbin/lighttpd -f /etc/lighttpd.conf
  </code></pre>
  
  <p>The logfile contains the following error:</p>
  
  <pre><code>2011-07-16 14:39:23: (log.c.166) server started
  2011-07-16 14:39:23: (mod_fastcgi.c.1367) --- fastcgi spawning local
      proc: /tmp/a.out
      port: 0
      socket /tmp/a.out.socket
      max-procs: 4
  2011-07-16 14:39:23: (mod_fastcgi.c.1391) --- fastcgi spawning
      port: 0
      socket /tmp/a.out.socket
      current: 0 / 4
  2011-07-16 14:39:23: (mod_fastcgi.c.978) bind failed for: unix:/tmp/a.out.socket-0 No such file or directory
  2011-07-16 14:39:23: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed.
  2011-07-16 14:39:23: (server.c.938) Configuration of plugins failed. Going down.
  </code></pre>
  
  <p>What is wrong with my configuration? I run OpenBSD 4.9.</p>
  
  <p>Many thanks in advance</p>
  
  <p>Toru</p>