Moin.
Hatte Pi-Hole bisher alleinig auf auf einem Pi mit Apache2 als Webserver am laufen. Alles ohne Probleme.
Als Vorweihnachtsgeschenk habe ich mir einen neuen Server-Rechner gegönnt und alles dorthin umgezogen.
fhem-Hausautomatisierung (eigener Webserver:8083), Nextcloud (Apache:80/443), iobroker (eigener Webserver:8081), Pi-Hole (Apache:80/admin mit blocking)
Installiert wurde über DietPi-Software.
Pi-Hole (FTL und Co.) läuft einwandfrei. DNS funktioniert und es wird auch Werbung geblock.
Ändere ich jetzt aber etwas an den Einstellungen im WebInterface werden diese nicht gespeichert.
Apache error-log:
AH01071: Got error 'PHP message: PHP Warning: Executing sudo pihole status web failed. in /var/www/html/admin/scripts/pi-hole/php/func.php on line 150', referer: http://192.168.1.5/admin/index.php
Status im WebInterface ist "Unknown".
sudoers, passwd, Dateiberechtigungen, Ordner, Apache-Config (für Pi-Hole): Alles das gleiche wie auf dem Pi wo Pi-Hole einwandfrei funktioniert hat.
DnsCrypt ist installiert....
root@fhem-server:~# uname -a
Linux fhem-server 5.16.0-rc4-amd64 #1 SMP PREEMPT Debian 5.16~rc4-1~exp1 (2021-12-07) x86_64 GNU/Linux
root@fhem-server:~# pihole status web
1
root@fhem-server:~# cat /etc/sudoers.d/pihole
# Pi-hole: A black hole for Internet advertisements
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
# Network-wide ad blocking via your own hardware.
#
# Allows the WebUI to use Pi-hole commands
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.
#
www-data ALL=NOPASSWD: /usr/local/bin/pihole
root@fhem-server:~# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
_apt:x:100:65534::/nonexistent:/usr/sbin/nologin
systemd-timesync:x:101:101:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin
systemd-network:x:102:103:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:103:104:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin
dietpi:x:1000:1000::/home/dietpi:/bin/bash
sshd:x:104:65534::/run/sshd:/usr/sbin/nologin
mysql:x:105:112:MySQL Server,,,:/nonexistent:/bin/false
redis:x:106:113::/var/lib/redis:/usr/sbin/nologin
messagebus:x:107:114::/nonexistent:/usr/sbin/nologin
lightdm:x:108:115:Light Display Manager:/var/lib/lightdm:/bin/false
minidlna:x:109:1000:MiniDLNA server,,,:/var/lib/minidlna:/usr/sbin/nologin
pihole:x:998:998::/home/pihole:/usr/sbin/nologin
fhem:x:997:20::/opt/fhem:/bin/bash
iobroker:x:1001:1001::/home/iobroker:/usr/sbin/nologin
_rpc:x:110:65534::/run/rpcbind:/usr/sbin/nologin
statd:x:111:65534::/var/lib/nfs:/usr/sbin/nologin
root@fhem-server:~# groups www-data
www-data : www-data redis pihole
root@fhem-server:~# cat /etc/pihole/setupVars.conf
WEBPASSWORD=___masked___
ADMIN_EMAIL=
WEBUIBOXEDLAYOUT=boxed
WEBTHEME=default-darker
DNSMASQ_LISTENING=single
DNSSEC=true
REV_SERVER=false
BLOCKING_ENABLED=true
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.1.5/24
IPV6_ADDRESS=2a02:8108:95bf:e75e:aaa1:59ff:fe90:cc68
PIHOLE_DNS_1=127.0.0.1#5300
PIHOLE_DNS_2=::1#5300
QUERY_LOGGING=true
INSTALL_WEB_SERVER=false
INSTALL_WEB_INTERFACE=true
LIGHTTPD_ENABLED=false
CACHE_SIZE=10000
DNS_FQDN_REQUIRED=true
DNS_BOGUS_PRIV=true
Es muss ja mit irgendwelchen Berechtigungen zu tun haben... Da ich aber jetzt mir alles bekannte drei mal durch habe, bin ich mit meinem Latein leider am Ende.
Grüße^^