[SOLVED] PiHole web server shows its nice logo but not the control panel

Expected Behaviour:
[Admin PHP page should appear and Control Panel should be loaded.

]

Actual Behaviour:
[Page is not appearing as expected, just a logo, so I think it wants to say that PiHole is blocking the whole webpage]

Debug Token:
[
ubuntu@ubuntu:~$ sudo pihole -d
[sudo] password for ubuntu:
This process collects information from your Pi-hole, and optionally uploads it to a unique and random directory on tricorder.pi-hole.net.

The intent of this script is to allow users to self-diagnose their installations.  This is accomplished by running tests against our software and providing the user with links to FAQ articles when a problem is detected.  Since we are a small team and Pi-hole has been growing steadily, it is our hope that this will help us spend more time on development.

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.

*** [ INITIALIZING ]
[i] 2018-02-22:09:39:30 debug log has been initialized.

*** [ INITIALIZING ] Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf...

*** [ DIAGNOSING ]: Core version
[i] Core: v3.3 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v3.3-0-g1e87850

*** [ DIAGNOSING ]: Web version
[i] Web: v3.3 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v3.3-0-ge48aa29

*** [ DIAGNOSING ]: FTL version
[✓] FTL: v3.0

*** [ DIAGNOSING ]: dnsmasq version
[i] 2.75

*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.35

*** [ DIAGNOSING ]: php version
[i] 7.0.25

*** [ DIAGNOSING ]: Operating system
[✓] Ubuntu 16.04.3 LTS

*** [ DIAGNOSING ]: SELinux
[i] SELinux not detected

*** [ DIAGNOSING ]: Processor
[i] i686

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the enp1s0 interface:
   192.168.0.13/24 matches the IP found in /etc/pihole/setupVars.conf

[✓] IPv6 address(es) bound to the enp1s0 interface:
   fe80::1e75:8ff:fedb:ff8d does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)

   ^ Please note that you may have more than one IP address listed.
   As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.

   The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.

[i] Default IPv4 gateway: 192.168.0.1
   * Pinging 192.168.0.1...
[✓] Gateway responded.

*** [ DIAGNOSING ]: Ports in use
[] is in use by 
[22] is in use by sshd
[53] is in use by dnsmasq
[80] is in use by lighttpd
[4711] is in use by pihole-FTL

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✓] ads105.hpg.com.br is 192.168.0.13 via localhost (127.0.0.1)
[✓] ads105.hpg.com.br is 192.168.0.13 via Pi-hole (192.168.0.13)
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Pi-hole processes
[✓] dnsmasq daemon is active
[✓] lighttpd daemon is active
[✓] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Setup variables
    PIHOLE_INTERFACE=enp1s0
    IPV4_ADDRESS=192.168.0.13/24
    IPV6_ADDRESS=
    PIHOLE_DNS_1=213.176.161.16
    PIHOLE_DNS_2=213.176.161.18
    QUERY_LOGGING=true
    INSTALL_WEB=true
    LIGHTTPD_ENABLED=1

*** [ DIAGNOSING ]: Dashboard and block page
[✓] X-Pi-hole: A black hole for Internet advertisements.
[✓] X-Pi-hole: The Pi-hole Web interface is working!

*** [ DIAGNOSING ]: Gravity list
-rw-r--r-- 1 root root 4301676 feb 22 09:02 /etc/pihole/gravity.list
   -----head of gravity.list------
   192.168.0.13 0.0.0.0
   192.168.0.13 0000mps.webpreview.dsl.net
   192.168.0.13 0001.2waky.com
   192.168.0.13 000dom.revenuedirect.com

   -----tail of gravity.list------
   192.168.0.13 zzsyw.com
   192.168.0.13 zztxdown.com
   192.168.0.13 zzz.clickbank.net
   192.168.0.13 zz.zeroredirect1.com

*** [ DIAGNOSING ]: contents of /etc/pihole

-rw-r--r-- 1 root root 633 feb 22 06:59 /etc/pihole/adlists.list
   https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
   https://mirror1.malwaredomains.com/files/justdomains
   http://sysctl.org/cameleon/hosts
   https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
   https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
   https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
   https://hosts-file.net/ad_servers.txt

-rw-r--r-- 1 root root 41 feb 22 09:02 /etc/pihole/local.list
   192.168.0.13 ubuntu
   192.168.0.13 pi.hole

-rw-r--r-- 1 root root 238 feb 22 09:01 /etc/pihole/logrotate
   /var/log/pihole.log {
        su root syslog
        daily
        copytruncate
        rotate 5
        compress
        delaycompress
        notifempty
        nomail
   }
   /var/log/pihole-FTL.log {
        su root syslog
        weekly
        copytruncate
        rotate 3
        compress
        delaycompress
        notifempty
        nomail
   }

-rw-r--r-- 1 root root 117 feb 22 06:59 /etc/pihole/whitelist.txt
   raw.githubusercontent.com
   mirror1.malwaredomains.com
   sysctl.org
   zeustracker.abuse.ch
   s3.amazonaws.com
   hosts-file.net

*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d

-rw-r--r-- 1 root root 1524 feb 22 09:01 /etc/dnsmasq.d/01-pihole.conf
   addn-hosts=/etc/pihole/gravity.list
   addn-hosts=/etc/pihole/black.list
   addn-hosts=/etc/pihole/local.list
   localise-queries
   no-resolv
   cache-size=10000
   log-queries=extra
   log-facility=/var/log/pihole.log
   local-ttl=2
   log-async
   server=213.176.161.16
   server=213.176.161.18
   interface=enp1s0

*** [ DIAGNOSING ]: contents of /etc/lighttpd

-rw-r--r-- 1 root root 3027 feb 22 09:01 /etc/lighttpd/lighttpd.conf
   server.modules = (
        "mod_access",
        "mod_accesslog",
        "mod_auth",
        "mod_expire",
        "mod_compress",
        "mod_redirect",
        "mod_setenv",
        "mod_rewrite"
   )
   server.document-root        = "/var/www/html"
   server.error-handler-404    = "pihole/index.php"
   server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
   server.errorlog             = "/var/log/lighttpd/error.log"
   server.pid-file             = "/var/run/lighttpd.pid"
   server.username             = "www-data"
   server.groupname            = "www-data"
   server.port                 = 80
   accesslog.filename          = "/var/log/lighttpd/access.log"
   accesslog.format            = "%{%s}t|%V|%r|%s|%b"
   index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
   url.access-deny             = ( "~", ".inc", ".md", ".yml", ".ini" )
   static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
   compress.cache-dir          = "/var/cache/lighttpd/compress/"
   compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
   include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
   include_shell "/usr/share/lighttpd/create-mime.assign.pl"
   include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
' 2>/dev/null"
   $HTTP["url"] =~ "^/admin/" {
       
       setenv.add-response-header = (
           "X-Pi-hole" => "The Pi-hole Web interface is working!",
           "X-Frame-Options" => "DENY"
       )
       $HTTP["url"] =~ ".ttf$" {
           
           setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
       }
   }
   $HTTP["url"] =~ "^/admin/\.(.*)" {
        url.access-deny = ("")
   }
   include_shell "cat external.conf 2>/dev/null"

*** [ DIAGNOSING ]: contents of /etc/cron.d

-rw-r--r-- 1 root root 1496 feb 22 09:01 /etc/cron.d/pihole
   50 4   * * 7   root    PATH="$PATH:/usr/local/bin/" pihole updateGravity
   00 00   * * *   root    PATH="$PATH:/usr/local/bin/" pihole flush once quiet
   @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
   */10 *  * * *   root    PATH="$PATH:/usr/local/bin/" pihole updatechecker local
   45 13  * * *   root    PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
   @reboot root    PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot

*** [ DIAGNOSING ]: contents of /var/log/lighttpd

-rw-r--r-- 1 www-data www-data 1259 feb 22 09:32 /var/log/lighttpd/error.log
   2018-02-22 06:58:47: (log.c.164) server started 
   2018-02-22 06:59:06: (server.c.1558) server stopped by UID = 0 PID = 1 
   2018-02-22 06:59:07: (log.c.164) server started 
   2018-02-22 07:00:12: (server.c.1558) server stopped by UID = 0 PID = 1 
   2018-02-22 07:01:05: (log.c.164) server started 
   2018-02-22 07:07:32: (server.c.1558) server stopped by UID = 0 PID = 1 
   2018-02-22 07:07:33: (log.c.164) server started 
   2018-02-22 07:21:55: (server.c.1558) server stopped by UID = 0 PID = 1 
   2018-02-22 08:00:39: (log.c.164) server started 
   2018-02-22 08:12:44: (server.c.1558) server stopped by UID = 0 PID = 1 
   2018-02-22 08:53:12: (log.c.164) server started 
   2018-02-22 08:54:35: (server.c.1558) server stopped by UID = 0 PID = 1 
   2018-02-22 08:55:21: (log.c.164) server started 
   2018-02-22 08:57:09: (server.c.1558) server stopped by UID = 0 PID = 1 
   2018-02-22 08:58:55: (log.c.164) server started 
   2018-02-22 09:00:25: (server.c.1558) server stopped by UID = 0 PID = 1 
   2018-02-22 09:01:39: (log.c.164) server started 
   2018-02-22 09:03:57: (server.c.1558) server stopped by UID = 0 PID = 1 
   2018-02-22 09:04:44: (log.c.164) server started 
   2018-02-22 09:31:51: (server.c.1558) server stopped by UID = 0 PID = 1 
   2018-02-22 09:32:42: (log.c.164) server started 

*** [ DIAGNOSING ]: contents of /var/log

-rw-r--r-- 1 pihole pihole 39389 feb 22 09:39 /var/log/pihole-FTL.log
   [2018-02-22 06:59:09.168] 
   [2018-02-22 06:59:09.168] FTL branch: v3.0
   [2018-02-22 06:59:09.169] FTL version: v3.0
   [2018-02-22 06:59:09.169] FTL commit: a1b2fa03f8f3e3713b57a26a4e9a062fec0573d7
   [2018-02-22 06:59:09.169] FTL date: 2018-02-14 12:45:47 -0800
   [2018-02-22 06:59:09.169] FTL user: pihole
   [2018-02-22 06:59:09.169] Notice: Found no readable FTL config file
   [2018-02-22 06:59:09.169]         Using default settings
   [2018-02-22 06:59:09.169] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
   [2018-02-22 06:59:09.169]    SOCKET_LISTENING: only local
   [2018-02-22 06:59:09.169]    QUERY_DISPLAY: Show queries
   [2018-02-22 06:59:09.169]    AAAA_QUERY_ANALYSIS: Show AAAA queries
   [2018-02-22 06:59:09.169]    MAXDBDAYS: max age for stored queries is 365 days
   [2018-02-22 06:59:09.169]    RESOLVE_IPV6: Resolve IPv6 addresses
   [2018-02-22 06:59:09.169]    RESOLVE_IPV4: Resolve IPv4 addresses
   [2018-02-22 06:59:09.169]    DBINTERVAL: saving to DB file every minute
   [2018-02-22 06:59:09.169]    DBFILE: Using /etc/pihole/pihole-FTL.db
   [2018-02-22 06:59:09.169]    MAXLOGAGE: Importing up to 24.0 hours of log data
   [2018-02-22 06:59:09.169] Finished config file parsing
   [2018-02-22 06:59:09.174] Found no other running pihole-FTL process
   [2018-02-22 06:59:09.175] PID of FTL process: 8807
   [2018-02-22 06:59:09.175] Error: failed to read /etc/pihole/list.preEventHorizon
   [2018-02-22 06:59:09.175] Gravity list entries: -1
   [2018-02-22 06:59:09.175] No blacklist present
   [2018-02-22 06:59:09.176] No wildcard blocking list present

*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 dnsmasq root 344543 feb 22 09:39 /var/log/pihole.log
   -----head of pihole.log------
   Feb 22 06:59:04 dnsmasq[8608]: iniciado, versión 2.75 tamaño de caché 10000
   Feb 22 06:59:04 dnsmasq[8608]: opciones al compilar: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
   Feb 22 06:59:04 dnsmasq[8608]: aviso: se ignora la marca resolv-file porque no-resolv está activado
   Feb 22 06:59:04 dnsmasq[8608]: se usa el servidor 213.176.161.18#53
   Feb 22 06:59:04 dnsmasq[8608]: se usa el servidor 213.176.161.16#53
   Feb 22 06:59:04 dnsmasq[8608]: /etc/hosts leído - 5 direcciones
   Feb 22 06:59:04 dnsmasq[8608]: fallo al cargar los nombres desde /etc/pihole/local.list: No existe el archivo o el directorio
   Feb 22 06:59:04 dnsmasq[8608]: fallo al cargar los nombres desde /etc/pihole/black.list: No existe el archivo o el directorio
   Feb 22 06:59:04 dnsmasq[8608]: fallo al cargar los nombres desde /etc/pihole/gravity.list: No existe el archivo o el directorio
   Feb 22 06:59:10 dnsmasq[8608]: 1 127.0.0.1/41298 query[AAAA] raw.githubusercontent.com from 127.0.0.1
   Feb 22 06:59:10 dnsmasq[8608]: 1 127.0.0.1/41298 forwarded raw.githubusercontent.com to 213.176.161.18
   Feb 22 06:59:10 dnsmasq[8608]: 1 127.0.0.1/41298 forwarded raw.githubusercontent.com to 213.176.161.16
   Feb 22 06:59:10 dnsmasq[8608]: 1 127.0.0.1/41298 reply raw.githubusercontent.com is <CNAME>
   Feb 22 06:59:10 dnsmasq[8608]: 1 127.0.0.1/41298 reply github.map.fastly.net is NODATA-IPv6
   Feb 22 06:59:10 dnsmasq[8608]: 2 127.0.0.1/58837 query[A] raw.githubusercontent.com from 127.0.0.1
   Feb 22 06:59:10 dnsmasq[8608]: 2 127.0.0.1/58837 cached raw.githubusercontent.com is <CNAME>
   Feb 22 06:59:10 dnsmasq[8608]: 2 127.0.0.1/58837 forwarded raw.githubusercontent.com to 213.176.161.18
   Feb 22 06:59:10 dnsmasq[8608]: 2 127.0.0.1/58837 reply raw.githubusercontent.com is <CNAME>
   Feb 22 06:59:10 dnsmasq[8608]: 2 127.0.0.1/58837 reply github.map.fastly.net is 151.101.132.133
   Feb 22 06:59:10 dnsmasq[8608]: 3 127.0.0.1/50760 query[A] raw.githubusercontent.com from 127.0.0.1


********************************************
********************************************
[✓] ** FINISHED DEBUGGING! **

    * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
    * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
    * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.

[?] Would you like to upload the log? [y/N] N
    * Log will NOT be uploaded to tricorder.

ubuntu@ubuntu:~$

]

Hello,

I have installed PiHole many times on my RPis, now I've tried to do it on an Ubuntu Server 16.04 on an old netbook.
I've installed PiHole with curl, all ok, but when I go into the web server, I see this, and there's no control panel.

I've checked systemctl -l status ligttpd and systemctl -l status dnsmasq and it says they are active (running).

Thank you very much!

Solved.

http://192.168.0.13/admin/ Opens Pi-Hole Control Panel.

It's different than in my RPi, there I get to the control panel with: http://192.168.0.13/pihole/

Yes, /admin/ is the Web interface;/pihole/ is the black hole.

Thank you very much for answering, Jacob: I really love PiHole :slight_smile:

1 Like

do you know how to solve my problem?
here's my link issue
https://github.com/pi-hole/pi-hole/issues/1875

thank you :slight_smile:

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