FIXED - Lighty Errors Since Update to Buster

Hi All,

I got the the message about Stretch being EOL etc and followed this guide to upgrade to Buster;

https://dietpi.com/docs/usage/#how-to-upgrade-to-buster

That mostly went well apart from a couple of prompts about updating config files, in particular lighttpd / php

I’ll hold my hand up here and say that I did not do a compare but just opted to keep my customised config files… oops!

Anyway, Lighty is running but no pages are showing [cant reach / refuse to connect] and I am getting errors in logs as follows;

Feb 18 17:15:12 domain.co.uk lighttpd[895]: /bin/sh: 1: /usr/share/lighttpd/create-mime.assign.pl: not found
Feb 18 17:15:12 domain.co.uk lighttpd[895]: 2022-02-18 17:15:12: (configfile.c.1468) command "/usr/share/lighttpd/cr
eate-mime.assign.pl" exited non-zero: 127
Feb 18 17:15:12 domain.co.uk lighttpd[895]: 2022-02-18 17:15:12: (configfile.c.1296) source: /etc/lighttpd/lighttpd.
conf line: 51 pos: 14 parser failed somehow near here: (EOL)
Feb 18 17:15:12 domain.co.uk systemd[1]: lighttpd.service: Control process exited, code=exit

Those two files defo exist though and I know from the past they are a key part of my config.

Edit1: OK there’s been some names changes…

https://github.com/alaudet/raspi-sump/issues/62

and a future upgrade warning I fixed also…

WARNING: include-conf-enabled.pl is deprecated and slated for removal.
Replace in lighttpd.conf with:
include “/etc/lighttpd/conf-enabled/*.conf”

Now I am getting a clean start and no errors in response to;

lighttpd -p -f /etc/lighttpd/lighttpd.conf

However I am getting “503 Service Not Available” when loading page…

Bit closer…

Bit closer again…

2022-02-18 18:24:28: (gw_backend.c.240) establishing connection failed: No such file or directory socket: unix:/var/run/php/php7.3-fpm.sock 
2022-02-18 18:24:28: (gw_backend.c.956) all handlers for /index.html? on .php are down. 
2022-02-18 18:24:30: (gw_backend.c.319) gw-server re-enabled: unix:/var/run/php/php7.3-fpm.sock  0 /var/run/php/php7.3-fpm.sock 
2022-02-18 18:24:47: (gw_backend.c.240) establishing connection failed: No such file or directory socket: unix:/var/run/php/php7.3-fpm.sock

Thing is there is no such directory /var/run/php/ ?

I have tried installing php from the buster repo and now get version number from ‘php -v’ which I didn’t before. What do I need to get LIghty to run php scripts - its been so long and mostly uneventful I have lost track of my initial setup!

OK got it - installed php-fpm and now back up and running.

If I was starting from scratch what would the minimum packages I would need to run php scripts on my lightty?

Usually it should be enough to install the web server as it will pull PHP automatically as dependency.

Helpful commands;

#journalctl -e

#service lighttpd restart

#lighttpd -tt -f /etc/lighttpd/lighttpd.conf

#systemctl status php7.3-fpm

also my post on redmin https://redmine.lighttpd.net/boards/2/topics/8173