Closed Fourdee closed 6 years ago
@Fourdee
- Revisit installation. Appears alot has changed with PiHole and its install.
Yes, correct.
Sorry, habe wenig Zeit im Moment. Daher auf Deutsch. Musst du halt ein wenig nach Γbersetzung googlen. Geht mir auch meist so. π
Was ich bis dato feststellen konnte, ist das Problem ein wenig vielschichtiger.
Bis Pi-Hole v3.1x hat das erneute anstoΓen der pihole Installation ΓΌber dietpi-software
immer funktioniert.
pihole -r
funktionierte nie.pihole -up
funktionierte nur, wenn die FTL Version alleine zu aktualisieren war.
Sonst wurde die gesamte Installation zerschossenMit der neusten Pi-Hole v3.2 scheint es mir, das weitere Probleme hinzu gekommen sind.
/DietPi/dietpi/dietpi-software: line 10239: pihole: command not found
Ich habe da noch einige weitere Meldungen:
/DietPi/dietpi/dietpi-software: line 10084: /usr/local/bin/pihole: No such file or directory
Ich deute das so, dass dies nicht funktionieren kann, da pihole nicht vollstΓ€ndig installiert ist.
root@NanoPi-Neo:~# pihole
-bash: pihole: Kommando nicht gefunden.
root@NanoPi-Neo:~# /etc/.pihole/pihole -r
/etc/.pihole/pihole: Zeile 15: /opt/pihole/COL_TABLE: Datei oder Verzeichnis nicht gefunden
Mein bis jetziger Verdacht ist, es kΓΆnnte etwas mit php5-sqlite
zu tun haben und den Optimierungen die DietPi bei der Web Server Installation an php5 durchgefΓΌhrt hat.
Aber mir fehlte im Moment die Zeit, da tiefer zu graben und die pihole v3.2 ist noch brandneu.
[β] Root user check
[β] Disk space check
[β] Update local cache of available packages
[β] Checking apt-get for upgraded packages... up to date!
[i] Installer Dependency checks...
[β] Checking for apt-utils
[β] Checking for dialog
[β] Checking for debconf
[β] Checking for dhcpcd5
[β] Checking for git
[β] Checking for iproute2
[β] Checking for whiptail
[β] Stopping dnsmasq service...
[β] Stopping lighttpd service...
[i] Using [i] Static IP already configured
[i] Found IPv6 GUA address, using it for blocking IPv6 ads
[i] IPv4 address: 192.xx.xx.100/24
[i] IPv6 address: 2001:xx:xx:xx:c4ff:fe0a:415b
[i] Web Interface On
[i] Logging On.
[i] Performing reconfiguration, skipping download of local repos
[β] Resetting repository within /etc/.pihole...
[β] Resetting repository within /var/www/html/admin...
[i] Main Dependency checks...
[β] Checking for bc
[β] Checking for cron
[β] Checking for curl
[β] Checking for dnsmasq
[β] Checking for dnsutils
[β] Checking for iputils-ping
[β] Checking for lsof
[β] Checking for netcat
[β] Checking for sudo
[β] Checking for unzip
[β] Checking for wget
[β] Checking for idn2
[β] Checking for lighttpd
[β] Checking for php5-common
[β] Checking for php5-cgi
[β] Checking for php5-sqlite (will be installed)
root@NanoPi-Neo:~# apt-get install php5-sqlite
Paketlisten werden gelesen... Fertig
AbhΓ€ngigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
php5-sqlite ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
1 nicht vollstΓ€ndig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusΓ€tzlich benutzt.
DietPi-Software
βββββββββββββββββββ
Mode: Update & upgrade APT
Please wait...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libraspberrypi-bin libraspberrypi0 raspberrypi-bootloader raspberrypi-kernel
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up php5-sqlite (5.6.30+dfsg-0+deb8u1) ...
Creating config file /etc/php5/mods-available/sqlite3.ini with new version
php5_invoke: Enable module sqlite3 for cli SAPI
php5_invoke: Enable module sqlite3 for fpm SAPI
php5_invoke: Enable module sqlite3 for cgi SAPI
Creating config file /etc/php5/mods-available/pdo_sqlite.ini with new version
php5_invoke: Enable module pdo_sqlite for cli SAPI
php5_invoke: Enable module pdo_sqlite for fpm SAPI
php5_invoke: Enable module pdo_sqlite for cgi SAPI
Processing triggers for php5-fpm (5.6.30+dfsg-0+deb8u1) ...
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
[Info] Pi-hole: Requires user input and can not be automated.
[Failed] Pi-hole: Will not be installed. Please run 'dietpi-software' to install.
@Fourdee @k-plan Jep fails, because apt php-cgi and php-sqlite3 fails somehow to install.
[β] Checking for php-cgi (will be installed)
[β] Checking for php-sqlite3 (will be installed)
I just did manual apt install php-cgi php-sqlite3 and after that it worked, including working web interface etc:
./install.sh
.;;,.
.ccccc:,.
:cccclll:. ..,,
:ccccclll. ;ooodc
'ccll:;ll .oooodc
.;cll.;;looo:.
.. ','.
.',,,,,,'.
.',,,,,,,,,,.
.',,,,,,,,,,,,....
....''',,,,,,,'.......
......... .... .........
.......... ..........
.......... ..........
......... .... .........
........,,,,,,,'......
....',,,,,,,,,,,,.
.',,,,,,,,,'.
.',,,,,,'.
..'''.
[β] Root user check
[β] Disk space check
[β] Update local cache of available packages
[β] Checking apt-get for upgraded packages... up to date!
[i] Installer Dependency checks...
[β] Checking for apt-utils
[β] Checking for dialog
[β] Checking for debconf
[β] Checking for dhcpcd5
[β] Checking for git
[β] Checking for iproute2
[β] Checking for whiptail
[β] Stopping dnsmasq service...
[β] Stopping lighttpd service...
[i] Using [i] Static IP already configured
[i] IPv4 address: 192.168.178.29/24
[i] IPv6 address:
[i] Web Interface On
[i] Logging On.
[β] Check for existing repository in /etc/.pihole
[β] Update repo in /etc/.pihole
[β] Check for existing repository in /var/www/html/admin
[β] Update repo in /var/www/html/admin
[i] Main Dependency checks...
[β] Checking for bc
[β] Checking for cron
[β] Checking for curl
[β] Checking for dnsmasq
[β] Checking for dnsutils
[β] Checking for iputils-ping
[β] Checking for lsof
[β] Checking for netcat
[β] Checking for sudo
[β] Checking for unzip
[β] Checking for wget
[β] Checking for idn2
[β] Checking for lighttpd
[β] Checking for php-common
[β] Checking for php-cgi
[β] Checking for php-sqlite3
[β] Enabling lighttpd service to start on reboot
[β] Installing scripts from /etc/.pihole
[i] Installing configs from /etc/.pihole...
[i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
[β] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf
[i] Creating log and changing owner to dnsmasq... log already exists!
[i] Installing blocking page...
[β] Creating directory for blocking page, and copying files
[β] Backing up index.lighttpd.html
[β] Installing sudoer file
[β] Installing latest Cron script
[β] Installing latest logrotate script
[i] FTL Checks...
[β] Detected x86_64 architecture
[i] Checking for existing FTL binary...
[β] Downloading and Installing FTL
[i] No active firewall detected.. skipping firewall configuration
[i] Restarting services...
[β] Starting dnsmasq service
[β] Enabling dnsmasq service to start on reboot
[β] Starting lighttpd service
[β] Enabling lighttpd service to start on reboot
[β] Starting pihole-FTL service
[β] Enabling pihole-FTL service to start on reboot
[i] Preparing to run gravity.sh to refresh hosts...
[i] Running gravity.sh
[i] Neutrino emissions detected...
[β] Pulling blocklist source list into range
[i] Target: raw.githubusercontent.com (hosts)
[β] Status: Retrieval successful
[i] Target: mirror1.malwaredomains.com (justdomains)
[β] Status: Retrieval successful
[i] Target: sysctl.org (hosts)
[β] Status: Retrieval successful
[i] Target: zeustracker.abuse.ch (blocklist.php?download=domainblocklist)
[β] Status: Retrieval successful
[i] Target: s3.amazonaws.com (simple_tracking.txt)
[β] Status: Retrieval successful
[i] Target: s3.amazonaws.com (simple_ad.txt)
[β] Status: Retrieval successful
[i] Target: hosts-file.net (ad_servers.txt)
[β] Status: Retrieval successful
[β] Consolidating blocklists
[β] Extracting domains from blocklists
[i] 129,154 domains being pulled in by gravity
[β] Removing duplicate domains
[i] 106,012 unique domains trapped in the Event Horizon
[β] Adding 6 blocklist source domains to the whitelist
[β] Whitelisting 0 domains
[β] Parsing domains into hosts format
[β] Cleaning up stray matter
[β] Force-reloading DNS service
[β] DNS service is running
[β] Pi-hole blocking is Enabled
[i] Web Interface password: AUOdjv_M
This can be changed using 'pihole -a -p'
View the web interface at http://pi.hole/admin or http://192.168.178.29/admin
You may now configure your devices to use the Pi-hole as their DNS server
[i] Pi-hole DNS (IPv4): 192.168.178.29
If you set a new IP address, please restart the server running the Pi-hole
[i] The install log is located at: /etc/pihole/install.log
Installation Complete!
So solution is to simply install those two packages (like above on Stretch, php5-cgi + php5-sqlite3 on Jessie) before running ./install.sh
notes:
E: Package 'php5-sqlite3' has no installation candidate
root@DietPi:~# apt-cache search sqlite | grep php
php-db - PHP PEAR Database Abstraction Layer
php5-sqlite - SQLite module for php5 # <<?
-sqlite*
??? ???
entries and use of awk
. Workaround is for user to enter the IP address manually, when asked. Other devices are fine.
root@DietPi:~# ip route get 8.8.8.8
8.8.8.8 via 192.168.0.1 via ??? ??? dev eth0 src 192.168.0.112
cache
@MichaIng
Legend :+1: https://github.com/Fourdee/DietPi/issues/1282#issuecomment-350490524
Completed.