Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


installing_pi_hole_linux_ubuntu_version_24_04

This is an old revision of the document!


installing Pi-Hole on Linux Ubuntu version 24.04

First run update packages and upgrade Ubuntu Server

sudo apt update && sudo apt upgrade -y

To check if curl is installed and functioning on Ubuntu Server 24.04, run the command

curl --version

If curl is not installed, run this command to install it:

sudo apt install curl -y

Next, Disable the default systemd-resolved DNS stub listener to free up Port 53 for Pi-hole. Then, restart systemd-resolved with the following commands:

sudo sed -i 's/#DNSStubListener=yes/DNSStubListener=no/' /etc/systemd/resolved.conf

sudo systemctl restart systemd-resolved

Next intall Pi-Hole for standard bare metal server environments (not containerized) using the Official Automated Script – Run the official network installer command:

curl -sSL https://install.pi-hole.net | bash

OPTION: When installing on Ubuntu version 26.04, you will instead need to disable the Operating System version check when running the official network installer of Pi-Hole:

curl -sSL https://install.pi-hole.net | sudo PIHOLE_SKIP_OS_CHECK=true bash

Complete the Configuration of Pi-Hole.

Once the installation wizard launches in your terminal: Follow the on-screen prompts to choose an upstream DNS provider (such as Cloudflare or Google), or use the two DNS servers from your ISP.

Write down for safekeeping the Admin Web Interface Password displayed at the very end of the installation process. Then log into your dashboard by opening a web browser and navigating to: http:<YOUR_SERVER_IP>/admin. IMPORTANT: You must change the port used to access Pi-Hole Admin dashboard if you want both Apache and the Pi-hole web dashboard to run on the same Ubuntu server. By default, both try to bind to Port 80, which will cause a conflict and prevent one of them from starting. However, the official installer does not give you an option to change the port during the installation wizard. You must configure it immediately after the installation finished. Pi-hole v6 uses an embedded web server managed directly through pihole-FTL. If Apache is already active, the Pi-hole installer will finish, but its web service will fail to start. Fix this immediately after the installation script finishes: <code> sudo vim /etc/pihole/pihole.toml </code> Look for the [webserver] section and locate the port variable. Change 80 to an open port like 8080. <code> port = “8080o,443os,[::]:8080o,[::]:443os” </code> Save the file (Esc from Insert mode and type :w then Enter) and exit vim (:q! then enter). Restart the Pi-hole system service to apply changes: <code> sudo systemctl restart pihole-FTL </code>

installing_pi_hole_linux_ubuntu_version_24_04.1786994017.txt.gz · Last modified: 2026/08/17 19:13 by wikiadmin