5 Replies Latest reply on Sep 28, 2015 3:19 PM by mhahn

    lighttpd, fast-cgi and php: I'm close, but not there...


      Ok, using AlexT repository I have installed lighttpd and php-cgi and php.


      lighttpd installation worked in the sense that I could get the "It works" default page to load in a browser, using a minimal lighttpd.conf file.


      It would appear that installation of PHP stuff has succeeded. i.e.


      root@edison1:/etc# php-cgi -v

      PHP 5.5.26 (cgi-fcgi) (built: Jul 29 2015 20:33:01)

      Copyright (c) 1997-2015 The PHP Group

      Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies




      root@edison1:/etc# php -v

      -sh: php: command not found


      but then again, (I assume some path issue above?)


      root@edison1:/etc# opkg install php

      Package php (5.5.26-r0) installed in root is up to date.

      If I now try to startup lighttpd I get:

      root@edison1:/etc# lighttpd -D -f lighttpd.conf

      2015-09-26 13:26:13: (/edison_dev/yocto/ww25/out/linux64/build/tmp/work/core2-32-poky-linux/lighttpd/1.4.35-r1/lighttpd-1.4.35/src/plugin.c.169) dlopen() failed for: /usr/lib/mod_fastcgi.so /usr/lib/mod_fastcgi.so: cannot open shared object file: No such file or directory

      2015-09-26 13:26:13: (/edison_dev/yocto/ww25/out/linux64/build/tmp/work/core2-32-poky-linux/lighttpd/1.4.35-r1/lighttpd-1.4.35/src/server.c.679) loading plugins finally failed



      any help appreciated. Here is my current lighttpd.conf file:


      server.modules  = (




              "mod_accesslog" )


      server.document-root = "/www/pages/"


      server.port = 80


      mimetype.assign = (

        ".html" => "text/html",

        ".txt" => "text/plain",

        ".jpg" => "image/jpeg",

        ".png" => "image/png"

      )failed for: /usr/lib/mod_fastcgi.so

      # files to check for if .../ is requested

      index-file.names            = ( "index.php", "index.html",

                                      "index.htm", "default.htm" )


      #### fastcgi module

      ## read fastcgi.txt for more info

      ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini

      fastcgi.server             = ( ".php" =>

                                     ( "localhost" =>


                                         "socket" => "/tmp/php-fastcgi.socket",

                                         "bin-path" => "/usr/bin/php-cgi"