cannot access web interface even after reinstall

Could try purge lighttpd including config files:

sudo dpkg -P lighttpd

Ans run repair to have lighttpd reinstalled and conditioned for Pi-hole:

pihole -r