LIGHTTPD doesn't start

Please follow the below template, it will help us to help you!

Expected Behaviour:

Lighttpd starts allowing me to access the web interface

Actual Behaviour:

Lighttpd fails to start.

Debug Token: ve9zyqz9ik

I tried 'run sudo service lighttpd stop' and then 'sudo lighttpd -f /etc/lighttpd/lighttpd.conf which resulted in "daemonized server failed to start; check error log for details" which indicated an invalid "bin-path" "/usr/bin/php-cgi"

pi@noads:~ $ grep php-cgi -R /etc/lighttpd*
/etc/lighttpd/conf-available/15-fastcgi-php.conf:               "bin-path" => "/usr/bin/php-cgi",
/etc/lighttpd/conf-enabled/15-fastcgi-php.conf:         "bin-path" => "/usr/bin/php-cgi",

pi@noads:~ $ readlink /usr/bin/php-cgi
/etc/alternatives/php-cgi

pi@noads:~ $ readlink /etc/alternatives/php-cgi
/usr/bin/php-cgi7.0

pi@noads:~ $ dpkg -S /usr/bin/php-cgi7.0
php7.0-cgi: /usr/bin/php-cgi7.0

Try reinstalling that package:

sudo apt install --reinstall php7.0-cgi

1 Like

Hi and thanks!

  1. readlink /etc/alternatives/php-cgi returns a blank line. The other two returned the same information as you have shown me.
  2. I reinstalled the php7.0 package as you suggested and install proceeded smoothly.
  3. I checked the web interface and it still didn't work.
  4. I again did 'sudo service lightpd stop' followed by 'sudo lighttpd -f /etc/lighttpd/lighttpd.conf' and the web interface is up and running again!

Thanks very much for your time and help!!!

Bill

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.