Where is "everything pihole"

I'm hoping this is an easy question for someone. I'm upgrading a pogoplug from V5 to V6 and of course ran into issues running "pihole -up". I think I now have everything working, but I'm wanting to check to make sure I didn't miss anything.

So, is there a list of where "anything pihole" is? So far, I know these files and locations:

/usr/bin/pihole-FTL
/usr/local/bin/pihole
/opt/pihole
/etc/pihole
/etc/.pihole
/etc/cron.d/pihole
/var/lib/logrotate/pihole
/var/log/pihole
/var/www/html/admin

Am I missing anything?

1 Like

That should be everything but to be completely sure you can check the installation script (you might have to change to a v5 branch for that version). Almost all of the paths are declared at the top as variables however there may be one or two hard coded paths.

v5 example: pi-hole/automated install/basic-install.sh at f126dc5e2f2a349c08ae73613fdf6c2ceec0a112 · pi-hole/pi-hole · GitHub

# Location for final installation log storage
installLogLoc="/etc/pihole/install.log"
# This is an important file as it contains information specific to the machine it's being installed on
setupVars="/etc/pihole/setupVars.conf"
# Pi-hole uses lighttpd as a Web server, and this is the config file for it
lighttpdConfig="/etc/lighttpd/lighttpd.conf"
# This is a file used for the colorized output
coltable="/opt/pihole/COL_TABLE"

# Root of the web server
webroot="/var/www/html"


# We clone (or update) two git repositories during the install. This helps to make sure that we always have the latest versions of the relevant files.
# web is used to set up the Web admin interface.
# Pi-hole contains various setup scripts and files which are critical to the installation.
# Search for "PI_HOLE_LOCAL_REPO" in this file to see all such scripts.
# Two notable scripts are gravity.sh (used to generate the HOSTS file) and advanced/Scripts/webpage.sh (used to install the Web admin interface)
webInterfaceGitUrl="https://github.com/pi-hole/web.git"
webInterfaceDir="${webroot}/admin"
piholeGitUrl="https://github.com/pi-hole/pi-hole.git"
PI_HOLE_LOCAL_REPO="/etc/.pihole"
# List of pihole scripts, stored in an array
PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage)
# This directory is where the Pi-hole scripts will be installed
PI_HOLE_INSTALL_DIR="/opt/pihole"
PI_HOLE_CONFIG_DIR="/etc/pihole"
PI_HOLE_BIN_DIR="/usr/local/bin"
FTL_CONFIG_FILE="${PI_HOLE_CONFIG_DIR}/pihole-FTL.conf"
if [ -z "$useUpdateVars" ]; then
    useUpdateVars=false
fi
1 Like

In case you previously have been using custom dnsmasq configuration files with Pi-hole v5, you may want to scrutinise /etc/dnsmasq.d/ as well.
If you want v6 to honor them, you may want to enable misc.dmisc.etc_dnsmasq_d, but note that other processes sometimes write to that directory as well, which may or may not be desired, and which may or may not produce conflicts.

See also Custom dnsmasq configs not loading.

Oh, that's a great idea - I didn't think of that. I'm actually wanting the V6 script because theoretically that's what it should be running at this point. I have a raspberry pi also running V6, so I'm wanting to check back and forth between the two to make sure everything that's supposed to be updated is updated.

Can we browse through pihole.toml somewhere too when we are not close to our own Pi-Hole v6 at the moment ?? :slight_smile:

I am horrible with GitHub stuff it seems and can't find it anywhere... LOL!

OK, for anyone following along at home, I also found these in the install script:

install -T -m 0644 "${PI_HOLE_LOCAL_REPO}/advanced/Templates/pihole-FTL.systemd" '/etc/systemd/system/pihole-FTL.service'
install -T -m 0755 "${PI_HOLE_LOCAL_REPO}/advanced/Templates/pihole-FTL.service" '/etc/init.d/pihole-FTL'
install -D -m 644 -T ${PI_HOLE_LOCAL_REPO}/manpages/pihole.8 /usr/local/share/man/man8/pihole.8

and this symbolic link:

lrwxrwxrwx 1 root root 38 Feb 24 20:01 /etc/systemd/system/multi-user.target.wants/pihole-FTL.service -> /etc/systemd/system/pihole-FTL.service
1 Like

You can't find it in Github, because there is no pihole.toml before installing Pi-hole.

This file is created by pihole-FTL during the installation.

You can read your own pihole.toml with this command:

less /etc/pihole/pihole.toml

# Use the arrow keys to navigate the file
# Type "q" to quit the program
# try "less --help" to learn every option

I knew that one, but was hoping for it to also be shown somewhere online :wink:

I guess I will upload it for myself somewhere then, thnx! :+1:

If you just want to know the structure and key-values without comments, you can use

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.