restore lightpd to serve pi-hole

The issue I am facing:
I also run several flight data feeders and after installing one of them, it seems hat some of he Pi-Hole lightpd data was overwritten. I can no longer access on localip:8080 as I have been, I just get a 404 error. Can I re-install the Pi-Hole data into the lightpd folder without writing over all my lists/data?

Details about my system:
Rasp-Pi 4B

Below defaults the web files:

Below defaults/reinstalls lighttpd:

Have to configure 8080 port afterwards in below file (will be overwritten on Pi-hole update or repair):

sudo nano /etc/lighttpd/lighttpd.conf

And run below to apply:

sudo service lighttpd restart

And check if "active (running)":

sudo service lighttpd status

Lists/data are stored in another location in the databases:

pi@ph5:~ $ ll /etc/pihole/*.db
-rw-rw-r-- 1 pihole pihole 12013568 May 24 04:26 /etc/pihole/gravity.db
-rw-r--r-- 1 pihole pihole  2351104 May 10 21:18 /etc/pihole/macvendor.db
-rw-r--r-- 1 pihole pihole 29749248 May 25 11:33 /etc/pihole/pihole-FTL.db

Thank you.

so far no luck.
sudo rm -r /var/www/html/admin results in "/var/www/html/admin does not exist". If I go to /var/www/html/ there is a 'pihole' folder but no 'admin'

Purging the lightpd will not work as it says my flight feed "Skyaware" is dependant on it.

pinhole -r results in:
[i] Existing PHP installation detected : PHP version 7.3.14-1~deb10u1
[i] Repair option selected
[â] Disk space check
[â] Update local cache of available packages

[â] Checking apt-get for upgraded packages... up to date!

[i] Installer Dependency checks...
[â] Checking for dhcpcd5
[â] Checking for git
[â] Checking for iproute2
[â] Checking for whiptail

[i] SELinux not detected
[i] Performing reconfiguration, skipping download of local repos
[â] Resetting repository within /etc/.pihole...
Unable to reset /var/www/html/admin, exiting installer

Reconfigure ended with a similar result.

pihole status results in:
[â] DNS service is running
[â] Pi-hole blocking is Enabled

Skyaware was set to use port 8090 but it is no longer working now either.

Reading up on Skyaware, it also uses lighttpd as web backend.
Both will try to configure lighttpd for their needs and this will most likely conflict.
Probably you have to choose which one you want to keep.
Or if know lighttpd well enough, configure lighttpd to support both (though unsupported here).
Some tools to play with.

Below tries to reinstall a package from apt cache and is the least intrusive but probably wont fix config file miss configurations:

sudo apt install --reinstall <PACKAGE_NAME>

Below removes a packages but leaves config files untouched:

sudo apt remove <PACKAGE_NAME>

Below purges the package entirely including config files:

sudo apt purge <PACKAGE_NAME>

If you want to keep/restore Pi-hole, you would have to purge the lighttpd package including reverse dependencies and config file(s) that most likely were modified/added by Skyaware.
Running below and selecting repair should fix the rest:

pihole -r

If that dont work, post a debug token here for the mods/devs to have a look.

Thanks very much, I will try those things. They were all cohabiting fine with pi-hole on 8080 and skyaware on 8090. I was adding another and didn't realize they also used lightpd.

I have skyaware back working on 8090 but still getting 404 error for pi-hole.