Hi All,
I'm getting great results using the custom firmware and especially mt-daapd,
but I'm having an issue running php - I've followed Sollie's instructions earlier in this thread, but when I try to start the lighttpd I get the following:
Code:
# /opt/etc/init.d/S80lighttpd start
Starting web server: lighttpd
#
# (mod_fastcgi.c.988) execve failed for: /opt/bin/php-fcgi
No such file or directory
(mod_fastcgi.c.1014) the fastcgi-backend /opt/bin/php-fcgi
failed to start:
(mod_fastcgi.c.1018) child exited with status 2 /opt/bin/php-fcgi
(mod_fastcgi.c.1021) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli)
For more information check http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program
(mod_fastcgi.c.1026) If this is PHP on Gentoo add fastcgi to the USE flags
(mod_fastcgi.c.1322) [ERROR]: spawning fcgi failed.
(server.c.848) Configuration of plugins failed. Going down.
If I re-comment out the php-fcgi part of lighttpd.conf the server starts ok.
I've tried creating /opt/bin/php-fcgi folder with 777 privs, but then I get the error:
Code:
# 2007-02-05 18:44:30: (mod_fastcgi.c.988) execve failed for: /opt/bin/php-fcgi
Permission denied
Obviously it's a permissions thing, but I'm new to linux and haven't really got a clue what I'm doing...