I upgraded to the latest v6, but now I can’t access the UI. Previously, I could reach it at http://192.168.29.215/admin, but now it just shows a list of files in the admin folder.
First, I tried running, sudo pihole-FTL --config webserver.port which returned: 80,443os,[::]:80,[::]:443os
However, http://192.168.29.215/admin still only showed the file listing.
Next, I attempted binding it to port 8080, as suggested in the other thread, using: sudo pihole-FTL --config webserver.port "8080,443os,[::]:8080,[::]:443os"
However, http://192.168.29.215:8080/admin did not work either. Do I need to create a profile in apache sites-enabled for Pihole to work? Also, do I need to listen to 8080 in the apache ports config?
You are seeing this because Apache2 is using port 80, but it is not capable of executing the new Pi-hole web interface pages written in Lua.
[✗] tcp:*:80 is in use by apache2
Pi-hole now has its own embedded web server.
Your debug log shows you have set Pi-hole to use these ports: 8080,443os,[::]:8080,[::]:443os, but they failed to start because there was something using port 8080 when the web server was started. Probably you set Pi-hole and Apache to use the same ports, causing a conflict.
They need to use different ports.
You have 2 options:
move Apache to a different port (or uninstall Apache), restart Pi-hole and access the web interface on port 80 (http://192.168.29.215/admin).
Just restart Pi-hole and access the web interface on this port (http://192.168.29.215:8080/admin). It is already configured to use this port.
Suggestion:
Try setting Pi-hole port using the "optional" (o) flag, to avoid issues if one port is in use.
This worked and I can now access the UI. As a safe bet, I also restarted the pihole server. I can't uninstall Apache cause the same server also runs nextcloud.
This still shows me the list of files under the admin folder.