Hello,
This may seem like a silly question but here goes…
Where is the php.ini file and where are the script files that should have been created by the lighttpd package install? I did the following to try and find the php.ini file…
root@colibri-imx6:/etc# php-cgi -i | grep php.ini
<tr><td class="e">Configuration File (php.ini) Path </td><td class="v">/usr/lib </td></tr>
root@colibri-imx6:/etc# ls -l /usr/lib | grep php
root@colibri-imx6:/etc#
root@colibri-imx6:/etc# ls | grep php
root@colibri-imx6:/etc#
I used opkg to install both php-cgi and lighttpd and I believe the server and php are installed corrctly.
root@colibri-imx6:/etc# lighttpd -v
lighttpd/1.4.33 - a light and fast webserver
Build-Date: Oct 29 2014 16:41:06
root@colibri-imx6:/etc# php-cgi -v
PHP 5.4.14 (cgi-fcgi) (built: Jul 8 2014 14:13:56)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
root@colibri-imx6:/etc#
Here is the output when I try to run the server.
root@colibri-imx6:/etc# lighttpd -f lighttpd.conf
2015-01-10 03:49:07: (/build/jenkins/angstrom-v2014.06/machine/beaglebone/build/tmp-angstrom_v2014_06-eglibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/lighttpd/1.4.33-r1/lighttpd-1.4.33/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-01-10 03:49:07: (/build/jenkins/angstrom-v2014.06/machine/beaglebone/build/tmp-angstrom_v2014_06-eglibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/lighttpd/1.4.33-r1/lighttpd-1.4.33/src/server.c.676) loading plugins finally failed
root@colibri-imx6:/etc#
I also tried to use mod_cgi…
root@colibri-imx6:/etc# lighttpd -f lighttpd.conf
2015-01-10 03:50:36: (/build/jenkins/angstrom-v2014.06/machine/beaglebone/build/tmp-angstrom_v2014_06-eglibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/lighttpd/1.4.33-r1/lighttpd-1.4.33/src/plugin.c.169) dlopen() failed for: /usr/lib/mod_cgi.so /usr/lib/mod_cgi.so: cannot open shared object file: No such file or directory
2015-01-10 03:50:36: (/build/jenkins/angstrom-v2014.06/machine/beaglebone/build/tmp-angstrom_v2014_06-eglibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/lighttpd/1.4.33-r1/lighttpd-1.4.33/src/server.c.676) loading plugins finally failed
root@colibri-imx6:/etc#
If I remove all the php configuration from the lighttpd.conf file the server runs correctly but (clearly) does not run .php files.
Thank you in advance,
Physineer