How to configure fastcgi to work with ligttpd in ubuntu

Posted by michael on Server Fault See other posts from Server Fault or by michael
Published on 2010-03-08T05:09:28Z Indexed on 2010/03/08 5:21 UTC
Read the original article Hit count: 918

Filed under:
|

I am able to run lighttpd on ubuntu 9.10.

But when i tried to setup fastcgi with lighttpd by putting this in the ligttpd.conf file:

#### fastcgi module
fastcgi.server = ( "/fastcgi_scripts/" =>
      (( "host" => "127.0.0.1",
         "port" => "9098",
         "check-local" => "disable",
     "bin-path" => "/usr/local/bin/cgi-fcgi",
         "docroot" => "/" # remote server may use
                          # it's own docroot
      ))
    )

This is what I get in the error.log in ligttpd:
2010-03-07 21:00:11: (log.c.166) server started 
2010-03-07 21:00:11: (mod_fastcgi.c.1104) the fastcgi-backend /usr/local/bin/cgi-fcgi failed to start: 
2010-03-07 21:00:11: (mod_fastcgi.c.1108) child exited with status 1 /usr/local/bin/cgi-fcgi 
2010-03-07 21:00:11: (mod_fastcgi.c.1111) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.
If this is PHP on Gentoo, add 'fastcgi' to the USE flags. 
2010-03-07 21:00:11: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed. 
2010-03-07 21:00:11: (server.c.931) Configuration of plugins failed. Going down. 

I do have cgi-fcgi in /usr/local/bin:

$ which cgi-fcgi 
/usr/local/bin/cgi-fcgi

Thank you for your help.

© Server Fault or respective owner

Related posts about lighttpd

Related posts about fastcgi