SO...to wrap it up ... WHAT is the preferred way of changing the port nr of lighttpd in 2025 ? Without too much, well, bashing about ?
That would be a question for lighttpd support.
Pi-hole 6 comes with its own embedded webserver - it does not use lighttpd.
2 Likes
Bucking_Horn beat me to it ... again.
But here is anyway
You dont bc with Pi-hole version 6, lighttpd isnt installed as dependency anymore as was with version 5.
The pihole-FTL binary has a web daemon embedded called civetweb:
$ pstree -pst $(pidof -s pihole-FTL)
systemd(1)βββpihole-FTL(4960)ββ¬β{civetweb-master}(22653)
ββ{civetweb-timer}(22652)
ββ{civetweb-worker}(22654)
ββ{civetweb-worker}(22655)
ββ{civetweb-worker}(22656)
ββ{civetweb-worker}(22657)
ββ{civetweb-worker}(22658)
ββ{civetweb-worker}(22659)
ββ{civetweb-worker}(22660)
ββ{civetweb-worker}(22830)
ββ{civetweb-worker}(22831)
ββ{database}(22648)
ββ{dns-client}(22650)
ββ{housekeeper}(22649)
ββ{ntp-server4}(22646)
ββ{ntp-server6}(22647)
ββ{timer}(22651)
$ sudo ss -nltp | grep 'State\|pihole-FTL'
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
LISTEN 0 200 0.0.0.0:443 0.0.0.0:* users:(("pihole-FTL",pid=4960,fd=39))
LISTEN 0 32 0.0.0.0:53 0.0.0.0:* users:(("pihole-FTL",pid=4960,fd=23))
LISTEN 0 200 0.0.0.0:80 0.0.0.0:* users:(("pihole-FTL",pid=4960,fd=38))
LISTEN 0 200 [::]:443 [::]:* users:(("pihole-FTL",pid=4960,fd=41))
LISTEN 0 32 [::]:53 [::]:* users:(("pihole-FTL",pid=4960,fd=25))
LISTEN 0 200 [::]:80 [::]:* users:(("pihole-FTL",pid=4960,fd=40))
You can alter the ports for HTTP or HTTPS via de webGUI "Expert" settings or via shell eg:
$ sudo pihole-FTL --config webserver.port
80o,443os,[::]:80o,[::]:443os
o = optional
s = secured via TLS (HTTPS)
$ sudo pihole-FTL --config webserver.port '8080o,4433os,[::]:8080o,[::]:4433os'
8080o,4433os,[::]:8080o,[::]:4433os
$ sudo ss -nltp | grep 'State\|pihole-FTL'
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
LISTEN 0 200 0.0.0.0:4433 0.0.0.0:* users:(("pihole-FTL",pid=4960,fd=39))
LISTEN 0 32 0.0.0.0:53 0.0.0.0:* users:(("pihole-FTL",pid=4960,fd=23))
LISTEN 0 200 0.0.0.0:8080 0.0.0.0:* users:(("pihole-FTL",pid=4960,fd=38))
LISTEN 0 200 [::]:4433 [::]:* users:(("pihole-FTL",pid=4960,fd=41))
LISTEN 0 32 [::]:53 [::]:* users:(("pihole-FTL",pid=4960,fd=25))
LISTEN 0 200 [::]:8080 [::]:* users:(("pihole-FTL",pid=4960,fd=40))
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.