403 Forbidden when trying to access web interface on v6

Expected Behaviour:

I'm running Pi-hole natively on an Ubuntu 24.04 machine. I should be able to access the web admin interface via http://server-ip:81/admin/login.php.

Actual Behaviour:

After the latest update to v6, I'm not able to access the web interface via http://server-ip:81/admin/login.php anymore. Lighttpd is set to run on port 81 and I'm able to access other sites running on Lighttpd, however http://server-ip:81/admin/login.php just gives a "404 Not Found" error where http://server-ip:81/admin gives me a "403 Forbidden" error.

I already tried reinstalling Pi-hole completely through the bash script, however that didn't help.

Debug Token:

I'm not really sure about providing a debug token since it offers a lot of private and sensitive information about my network and DNS configuration. If needed, I would try cutting out the sensitive stuff and post it here nonetheless.

V6 does not use lighttpd or php anymore. See the V6 Announcement for changes.

Oh thanks for the hint. So how do I tell Pi-hole which HTTP port to use then?

Changes are made in the new /etc/pihole/pihole.toml file. See this post for some additional info.

Oh wow, thanks. I think as there have been so many posts about problems with connecting to the new UI, it would have been good to have some sort of quick guide for people having the lighttpd server still running. For me, sudo apt purge lighttpd followed by customizing the pihole.toml with the needed port solved the issue. Thanks again @CallMeCurious

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