Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
1,937 Views

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

however,

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

root@edison1:/etc#

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

server.modules = (

"mod_access",

"mod_fastcgi",

"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"

)

)

)

5 Replies
Highlighted
51 Views

  • php-cgi should be fine, shouldn't it?
  • /usr/lib/mod_fastcgi.so /usr/lib/mod_fastcgi.so: cannot open shared object file: No such file or directory - check your fastcgi installation
0 Kudos
Highlighted
New Contributor I
51 Views

Hi,

I'm not sure how to check the fastcgi installation.I assumed from the messages above that it was installed ok as in: PHP 5.5.26 (cgi-fcgi)

 

I don't know how else to install it, or start it up up, other than using the config file, which won't run?

 

could you expand a little

 

thanks

 

Highlighted
51 Views

you would have to install the mod_fastcgi for lighttpd - there should be an extra package. Check AlexT's repo

0 Kudos
Highlighted
New Contributor I
51 Views

yes. found it. installed it. success!

thanks

0 Kudos
Highlighted
51 Views

so pls mark as answered

0 Kudos