Last verified with
Pi-hole v5.1.2 Web Interface v5.1.1 FTL v5.2
Cloud Key firmware UCKG2.apq8053.v1.1.13.818cc5f.200430.0938
Instructions
-
Change all your networks to use 1.1.1.1 or some other upstream DNS so that you still have DNS resolution working once the firmware upgrade completes
- Alternately, setup all your networks to have a secondary upstream DNS. While not ideal, will help with a seamless update process
-
Upgrade the firmware on the cloud-key
-
Briefly enable system-resolved (if not cloud-key will not be able to resolve DNS)
sudo systemctl start systemd-resolved
-
Re-install Pi-Hole https://community.ui.com/questions/CK2-Firmware-0-9-4-Pi-Hole-install/ad79a1f0-fedf-4853-9435-a92d845e4025#answer/24d675f5-7531-4421-922b-7887cd6a4d2a
#go superuser
sudo –i
#Let's install nano to make conf edit easier
apt-get install nano
#Install dnsmasq
apt-get update
apt-get install dnsmasq
#(Answer Y to replace the files as keeping the existing will point to 01-pihole.conf which does not work until pi-hole is installed)
# Ubiquiti switched the resolver to systemd-resolved which reserves the port 53
# dnsmasq install will fail to start dnsmasq so lets resolve that
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
sudo systemctl start dnsmasq
#Install pi-hole
cd /tmp
wget -O basic-install.sh https://install.pi-hole.net
#Install optional dependencies
#apt-get install man
#Install required dependencies
apt-get install whiptail
apt-get install dhcpcd5
apt-get install git
apt-get install dnsutils
apt-get install lsof
apt-get install unzip
apt-get install idn2
#downgrade libsqlite3 to support sqlite3
apt-get install libsqlite3-0=3.16.2-5+deb9u1
apt-get install sqlite3
apt-get install resolvconf
apt-get install lighttpd
apt-get install php-common
apt-get install php-cgi
apt-get install php-sqlite3
bash basic-install.sh
#Reconfigure lighttpd port to 8081
nano /etc/lighttpd/lighttpd.conf
#Restart lighttpd
/etc/init.d/lighttpd restart
#Change the pi-hole random password to your liking
pihole -a -p
- Fix the php issue (valid only on older versions). If HTTP_HOST is not found, ignore this section.
/var/www/html/pihole/index.php
change
$serverName = htmlspecialchars($_SERVER["HTTP_HOST"]);
to
$serverName = htmlspecialchars($_SERVER["SERVER_ADDR"]);
Last verified with