Pihole interfered nextcloud web interface

Hey all, thanks in advance. So I installed pihole and nextcloud. But pihole interfere with nextcloud web interface. I also installed lighttpd as well. It all standard config

Been struggling to have it all worked together.

What do you mean, it interferes?
Nextcloud is reachable via http://<your.IP>/nextcloud while pihole interface is reachable via http://<your.IP>:8089/admin/.

Well for some reason, it rerurn with the 403 error and the a link to redirect me back to pihole

When you try to reach pihole on port 8089?

So normally when you install nextdcloud the installer is asking which webserver you wanna use, there you choose lighttpd?

And pihole does not need a webserver anymore, it’s comes now with an integrated one.

Can you share the output of the following command

sudo ss -tulpn

No it did not ask me if i want to use lighttpd or what not. The pihole web didnt work when i first installed it. It returned the error: “ERR_CONNECTION_FAILED”

I think it only work with port 80 because the pihole web only answer through port 80. Not 8089

The output of the command:

Netid  State   Recv-Q  Send-Q                              Local Address:Port      Peer Address:Port  Process
udp    UNCONN  0       0                                         0.0.0.0:53             0.0.0.0:\*      users:(("pihole-FTL",pid=649,fd=20))
udp    UNCONN  0       0                                         0.0.0.0:6771           0.0.0.0:\*      users:(("qbittorrent-nox",pid=18249,fd=28))
udp    UNCONN  0       0                                         0.0.0.0:6771           0.0.0.0:\*      users:(("qbittorrent-nox",pid=18249,fd=27))
udp    UNCONN  0       0                                         0.0.0.0:6771           0.0.0.0:\*      users:(("qbittorrent-nox",pid=18249,fd=26))
udp    UNCONN  0       0                                         0.0.0.0:123            0.0.0.0:\*      users:(("pihole-FTL",pid=649,fd=30))
udp    UNCONN  0       0                                         0.0.0.0:41641          0.0.0.0:\*      users:(("tailscaled",pid=550,fd=18))
udp    UNCONN  0       0                                         0.0.0.0:35514          0.0.0.0:\*      users:(("EmbyServer",pid=18259,fd=331))
udp    UNCONN  0       0                                       127.0.0.1:47806          0.0.0.0:\*      users:(("EmbyServer",pid=18259,fd=338))
udp    UNCONN  0       0                                         0.0.0.0:60099          0.0.0.0:\*      users:(("avahi-daemon",pid=18125,fd=14))
udp    UNCONN  0       0                                       127.0.0.1:5335           0.0.0.0:\*      users:(("unbound",pid=620,fd=3))
udp    UNCONN  0       0                                   100.77.251.92:6881           0.0.0.0:\*      users:(("qbittorrent-nox",pid=18249,fd=17))
udp    UNCONN  0       0                                       10.0.0.48:6881           0.0.0.0:\*      users:(("qbittorrent-nox",pid=18249,fd=15))
udp    UNCONN  0       0                                       127.0.0.1:6881           0.0.0.0:\*      users:(("qbittorrent-nox",pid=18249,fd=12))
udp    UNCONN  0       0                                       10.0.0.48:42215          0.0.0.0:\*      users:(("qbittorrent-nox",pid=18249,fd=40))
udp    UNCONN  0       0                                         0.0.0.0:5353           0.0.0.0:\*      users:(("avahi-daemon",pid=18125,fd=12))
udp    UNCONN  0       0                                       10.0.0.48:40727          0.0.0.0:\*      users:(("EmbyServer",pid=18259,fd=337))
udp    UNCONN  0       0                                       10.0.0.48:58672          0.0.0.0:\*      users:(("qbittorrent-nox",pid=18249,fd=37))
udp    UNCONN  0       0                                         0.0.0.0:1900           0.0.0.0:\*      users:(("EmbyServer",pid=18259,fd=335))
udp    UNCONN  0       0                                       10.0.0.48:1900           0.0.0.0:\*      users:(("qbittorrent-nox",pid=18249,fd=35))
udp    UNCONN  0       0                                               *:53                   :*      users:(("pihole-FTL",pid=649,fd=22))
udp    UNCONN  0       0                                               *:6771                 :*      users:(("qbittorrent-nox",pid=18249,fd=32))
udp    UNCONN  0       0                                               *:6771                 :*      users:(("qbittorrent-nox",pid=18249,fd=31))
udp    UNCONN  0       0                                               *:6771                 :*      users:(("qbittorrent-nox",pid=18249,fd=30))
udp    UNCONN  0       0                                               *:6771                 :*      users:(("qbittorrent-nox",pid=18249,fd=29))
udp    UNCONN  0       0                                               *:123                  :*      users:(("pihole-FTL",pid=649,fd=31))
udp    UNCONN  0       0                                               *:41641                :*      users:(("tailscaled",pid=550,fd=20))
udp    UNCONN  0       0                                               *:7359                 :*      users:(("EmbyServer",pid=18259,fd=315))
udp    UNCONN  0       0                     \[fe80::ce7d:8d91:6fb0:a6b7\]:6881                 *:*      users:(("qbittorrent-nox",pid=18249,fd=25))
udp    UNCONN  0       0                     \[fd7a:115c:a1e0::f33a:fb5c\]:6881                 *:*      users:(("qbittorrent-nox",pid=18249,fd=23))
udp    UNCONN  0       0                     \[fe80::ba27:ebff:fe12:4fe3\]:6881                 *:*      users:(("qbittorrent-nox",pid=18249,fd=21))
udp    UNCONN  0       0                                           \[::1\]:6881                 *:*      users:(("qbittorrent-nox",pid=18249,fd=19))
udp    UNCONN  0       0                                               *:5353                 :*      users:(("avahi-daemon",pid=18125,fd=13))
udp    UNCONN  0       0                                               *:52983                :*      users:(("avahi-daemon",pid=18125,fd=15))
tcp    LISTEN  0       256                                     127.0.0.1:5335           0.0.0.0:      users:(("unbound",pid=620,fd=4))
tcp    LISTEN  0       30                                   127.0.0.1%lo:6881           0.0.0.0:      users:(("qbittorrent-nox",pid=18249,fd=11))
tcp    LISTEN  0       80                                      127.0.0.1:3306           0.0.0.0:      users:(("mariadbd",pid=18172,fd=151))
tcp    LISTEN  0       511                                     127.0.0.1:6379           0.0.0.0:      users:(("redis-server",pid=18134,fd=9))
tcp    LISTEN  0       30                       100.77.251.92%tailscale0:6881           0.0.0.0:      users:(("qbittorrent-nox",pid=18249,fd=16))
tcp    LISTEN  0       128                                       0.0.0.0:22             0.0.0.0:      users:(("sshd",pid=653,fd=6))
tcp    LISTEN  0       32                                        0.0.0.0:53             0.0.0.0:      users:(("pihole-FTL",pid=649,fd=21))
tcp    LISTEN  0       4096                                100.77.251.92:57896          0.0.0.0:      users:(("tailscaled",pid=550,fd=26))
tcp    LISTEN  0       200                                       0.0.0.0:80             0.0.0.0:      users:(("pihole-FTL",pid=649,fd=36))
tcp    LISTEN  0       200                                       0.0.0.0:443            0.0.0.0:      users:(("pihole-FTL",pid=649,fd=37))
tcp    LISTEN  0       30                                 10.0.0.48%eth0:6881           0.0.0.0:\*      users:(("qbittorrent-nox",pid=18249,fd=14))
tcp    LISTEN  0       511                                         \[::1\]:6379              \[::\]:\*      users:(("redis-server",pid=18134,fd=10))
tcp    LISTEN  0       128                                             *:5252                 :*      users:(("frontend",pid=622,fd=10))
tcp    LISTEN  0       128                                             *:5253                 :*      users:(("frontend",pid=622,fd=9))
tcp    LISTEN  0       30                                       \[::1\]%lo:6881              \[::\]:      users:(("qbittorrent-nox",pid=18249,fd=18))
tcp    LISTEN  0       128                                          \[::\]:22                \[::\]:      users:(("sshd",pid=653,fd=7))
tcp    LISTEN  0       32                                           \[::\]:53                \[::\]:\*      users:(("pihole-FTL",pid=649,fd=23))
tcp    LISTEN  0       4096                  \[fd7a:115c:a1e0::f33a:fb5c\]:40189             \[::\]:\*      users:(("tailscaled",pid=550,fd=27))
tcp    LISTEN  0       200                                          \[::\]:80                \[::\]:\*      users:(("pihole-FTL",pid=649,fd=38))
tcp    LISTEN  0       30         \[fd7a:115c:a1e0::f33a:fb5c\]%tailscale0:6881              \[::\]:\*      users:(("qbittorrent-nox",pid=18249,fd=22))
tcp    LISTEN  0       200                                          \[::\]:443               \[::\]:\*      users:(("pihole-FTL",pid=649,fd=39))
tcp    LISTEN  0       512                                             *:8096                 :*      users:(("EmbyServer",pid=18259,fd=281))
tcp    LISTEN  0       50                                              *:1340                 :*      users:(("qbittorrent-nox",pid=18249,fd=47))
tcp    LISTEN  0       30               \[fe80::ba27:ebff:fe12:4fe3\]%eth0:6881              \[::\]:      users:(("qbittorrent-nox",pid=18249,fd=20))
tcp    LISTEN  0       30         \[fe80::ce7d:8d91:6fb0:a6b7\]%tailscale0:6881              \[::\]:      users:(("qbittorrent-nox",pid=18249,fd=24))

Did you install both via dietpi-software?

Yes

But your pihole instance runs on port 80, 443 and 53, but it should run on port 8089, 8489 and 5335.
Did you change the config or anything else? Doesn’t look like it was installed via dietpi script.

You can try to reinstall it.

I also do not see lighttpd running. Can you share

dietpi-services status

I uninstalled lighttpd alr. I did installed everything through dietpi-software. No changes in config

So no webserver is running and pihole is listening on the wrong ports.
You can try and reinstall pihole and nextcloud

Ok i’ll try

Ok everything works now. Thanks.

Dont know why the pihole didnt have the port 8089 on the first install.

I also don’t know. Had you pihole installed before and there was maybe old config left?
Whatever it was, it’s nice that it’s now working.

Yup that the purpose of the whole thing you know. I wanna block ad and stuff and then i kinda got it into a whole home lab stuff