Pi-hole v5.1.2 Web Interface v5.1.1 FTL v5.2
Cloud Key firmware UCKG2.apq8053.v1.1.13.818cc5f.200430.0938
-
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"]);
Pi-hole v5.2.2 Web Interface v5.2.2 FTL v5.3.4
Cloud Key: 2.0.24
Got errors when running dnsmasq for the first time
Ran again, got this:
Ran
Re-ran nano install and it succeeded with this
It would be good if you could point to the exact line or section of the lighttp config that needs to be updated, server.port.
If would be good if you could point to the line to check for the PHP file. I think it is only at the top for $serverName, but I spent some time searching the file for it.
I also wasn't sure if I should leave the IP as 192.168.1.218 or change it.
I tried with leaving it as 192.168.1.218 and that wouldn't resolve the admin interface. I then tried with 192.168.1.2 and that didn't work either.
I then set it to 192.168.1.200/24 and kept 192.168.1.1 as the gateway.
It didn't work until I rebooted the Cloud Key...now pihole admin works....BUT I cannot access the cloud key admin interface. I can SSH into it, but the interface doesn't come up when I hit via browser.
It's late so I'm now factory resetting my cloud key and probably just going to run pihole on a PI.
Jon