Pi-hole on a dedicated server with running web server

Hi,

first of all:
Is it a good idea to install pi-hole on a dedicated server or am I missing something here?

My problem:
I installed it on my server and everything went well, but Plesk is running on my server and drupal was installed before
so I could not reach the admin interface via http://website/admin because I got to drupal.
After removing drupal and rerunning the installation the site was unreachable.

How can I check if pi-hole is running correctly and if so how can I reach the admin inteface on a system with a running webserver?

Debug Token:

::: Beginning Pi-hole debug at Do 26. Okt 01:25:35 CEST 2017!
:::
::: This process collects information from your Pi-hole, and optionally uploads
::: it to a unique and random directory on tricorder.pi-hole.net.
:::
::: NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers
::: can access your data via the given token. We have taken these extra steps to
::: secure your data and will work to further reduce any personal information gathered.
:::
::: Please read and note any issues, and follow any directions advised during this process.
:::
::: ---= Detecting Installed Package Versions:
::: Pi-hole: v3.1.4 (master:v3.1.4-0-gb0ecedd)
::: Pi-hole Dashboard: v3.1 (master:v3.1-0-gf204b71)
::: lighttpd/1.4.35
::: PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
:::
::: ---= Detecting existence of /etc/pihole/setupVars.conf:
::: File exists, parsing...done and was successfully sourced
:::
::: ---= Detecting installed OS Distribution
:::
::: ---= Checking processor variety
:::
::: ---= Checking IPv6 Stack
::: No IPv6 found on enp2s0
:::
::: ---= Checking IPv4 Stack
::: IPv4 addresses located on enp2s0
::: Pinging default IPv4 gateway: ::: Gateway responded.
::: Pinging Internet via IPv4: ::: Query responded.
:::
::: ---= Daemon Process Information
::: Checking http port for lighttpd listener.
::: Correctly configured.
:::
::: ---= Daemon Process Information
::: Checking domain port for dnsmasq listener.
::: Correctly configured.
:::
::: ---= Daemon Process Information
::: Checking 4711 port for pihole-FTL listener.
::: Failure: IPv4 Port not in use
:::
::: ---= Processes Check
::: Logging status of lighttpd, dnsmasq and pihole-FTL...
:::
::: ---= Resolver Functions Check (IPv4)
shuf: /etc/pihole/gravity.list: No such file or directory
::: Checking for necessary lighttpd files.
:::
::: ---= Detecting existence of /etc/lighttpd/lighttpd.conf:
::: File exists, parsing...done
:::
::: ---= Detecting existence of /var/log/lighttpd/error.log:
::: /var/log/lighttpd/error.log not found!
:::
:::
::: ---= Detecting existence of /etc/dnsmasq.conf:
::: File exists, parsing...done
:::
::: ---= Detecting contents of /etc/dnsmasq.d/*:
:::
::: ---= File /etc/dnsmasq.d/01-pihole.conf found
::: Parsing...done
:::
::: ---= File /etc/dnsmasq.d/README found
::: Parsing...done
:::
:::
::: ---= Detecting existence of /etc/pihole/whitelist.txt:
::: /etc/pihole/whitelist.txt not found!
:::
::: ---= Detecting existence of /etc/pihole/blacklist.txt:
::: /etc/pihole/blacklist.txt not found!
:::
::: ---= Detecting existence of /etc/pihole/adlists.list:
::: /etc/pihole/adlists.list not found!
:::
::: ---= Analyzing gravity.list
grep: /etc/pihole/gravity.list: No such file or directory
::: Warning: No gravity.list file found!
:::
::: ---= Analyzing pihole.log
::: Warning: No pihole.log file found!
:::
::: ---= Analyzing pihole-FTL.log
grep: /var/log/pihole-FTL.log: No such file or directory
::: Warning: No pihole-FTL.log file found!
du: cannot access '/var/log/pihole-FTL.log': No such file or directory
::: Warning: No pihole-FTL.log file found!
tail: cannot open '/var/log/pihole-FTL.log' for reading: No such file or directory
:::
::: --= User Action Required =--
::: Try loading a site that you are having trouble with now from a client web browser..
::: (Press CTRL+C to finish logging.)

Thanks in advance!

Best regards
Antonio

I had Apache installed and tried to install Pi-hole but it failed to complete.

I removed Apache and reinstalled after running the removal script from https://github.com/pi-hole/pi-hole/blob/master/automated%20install/uninstall.sh Note: This file may all ready be in your system.
It has been working ok.

Thanks for your answer and the link!

But I think Plesk requires Apache so removing it is not an option.

Best regards

Have a Try installing Pi-hole first and then install Apache.
Thats maybe what I would try next.

Pi-hole uses lighttpd, so you should move apache to a different port (Pi-hole requires port 80). If the other software just needs a web server and not necessarily apache, you can try just removing apache and running everything through lighttpd.

I uninstalled pi-hole with uninstall.sh and installed it again.
Than I changed the apache port to 8080 and now everything is working fine! :smile:

Thanks for the help :slight_smile:

Best regards
Antonio