I have a small Thin Client with Alpine Linux (v3.23.4), already install Pi-Hole using yvelon script in Git.
cat /etc/pihole/versions
CORE_VERSION=0c6b70f
CORE_BRANCH=master
CORE_HASH=0c6b70fa
GITHUB_CORE_VERSION=v6.4.2
GITHUB_CORE_HASH=3413768c
WEB_VERSION=v6.5
WEB_BRANCH=master
WEB_HASH=7a17e01c
GITHUB_WEB_VERSION=v6.5
GITHUB_WEB_HASH=7a17e01c
FTL_VERSION=5.25.1
FTL_BRANCH=
FTL_HASH=
GITHUB_FTL_VERSION=v6.6.1
GITHUB_FTL_HASH=
As far as I can see, Pi-Hole is using lighttpd as web server, but only for port 80:
netstat -punta | grep LISTEN
tcp 0 0 127.0.0.1:4711 0.0.0.0:* LISTEN 3350/pihole-FTL
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 4049/lighttpd
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 3350/pihole-FTL
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2436/sshd [listener
tcp 0 0 ::1:4711 :::* LISTEN 3350/pihole-FTL
tcp 0 0 :::53 :::* LISTEN 3350/pihole-FTL
tcp 0 0 :::22 :::* LISTEN 2436/sshd [listener
Actual Behaviour:
I'm getting 403 Forbidden from lighthttpd when I access to http://{SERVER_IP}/admin/ ... here is the webserver log:
==> /var/log/lighttpd/access-pihole.log <==
1777613001|{MY_IP}|{SERVER_IP}|GET /admin/ HTTP/1.1|403|158
Debug Token:
Also I have a debug code or token for more information: hmQfB7CB
Some help over here please?
The GitLab you linked has last been updated in 2024 and is running a very old version of Pi-hole (probably v5).
I’d suggest uninstalling that version and installing the latest version of v6 from official sources instead. Pi-hole has had Alpine support for some months now.
Note that v6 doesnt use lighttpd and instead uses an embedded web server.
This is a third party script, created for an older Pi-hole version.
As far as I know, the script installs Pi-hole v5. Also, apparently you tried to update Pi-hole, resulting in a mix of v5 and v6 files.
Your debug log shows you are using:
A third party version of Core (gitlab.com/yvelon - probably base on v5):
*** [ DIAGNOSING ]: Core version
[✓] Version:
[i] Remotes: origin https://gitlab.com/yvelon/pi-hole.git (fetch)
origin https://gitlab.com/yvelon/pi-hole.git (push)
[i] Branch: master
[i] Commit: 0c6b70f
The web interface files are v6 (and their permissions were completely changed):
*** [ DIAGNOSING ]: Web version
[✓] Version: v6.5
[i] Remotes: origin https://github.com/pi-hole/web.git (fetch)
origin https://github.com/pi-hole/web.git (push)
[i] Branch: master
[i] Commit: v6.5-0-g7a17e01-dirty
And finally, FTL version is v5:
*** [ DIAGNOSING ]: FTL version
[✓] Version: 5.25.1
[i] Branch:
[i] Commit:
The v6 web interface needs core and FTL v6.
This is a complete mess and it will never work. I don't even know how to suggest a fix.
If you want to keep using the third party script, you will need to ask for help on their repository.
My suggestion is to completely uninstall your current Pi-hole and try to install again using the official installation.
What a disaster, total chaos! hahaha ... ok ok, thanks to both of you for the replies.
I'm going to do a clean reinstall and clearly without using that script.
The Pi-hole v6 installer should work on Alpine.