New user - Text only admin console & no data

Hi everyone, I successfully installed Debian 9 (250 MB CD version from Debian) on an old laptop and then successfully installed Pi-Hole which works great (Forbes.com without a nag screen!).

However, my admin console on the laptop or on my desktop client doesn't have an graphics or data- it looks like this in Internet Explorer on the Windows PC and looks like that in Firefox on the Debian laptop:

On my android note 3 or other browsers on the pc it is straight up html code:

<?php /* * Pi-hole: A black hole for Internet advertisements * (c) 2017 Pi-hole, LLC (https://pi-hole.net) * Network-wide ad blocking via your own hardware. * * This file is copyright under the latest version of the EUPL. * Please see LICENSE file for your rights under this license. */ $indexpage = true; require "scripts/pi-hole/php/header.php"; ?>

Total queries (- clients)

---

Queries Blocked

---

I suspect a permissions issue someplace but I don't have a clue where to start.

Thanks!

At first glance, it appears that you don't have php installed (or the wrong version). Please post the output of

php --version

and

apt-cache show php

Thanks! Here's the result(s):

root@Debian-PiHole:/var# php --version
PHP 7.0.19-1 (cli) (built: May 11 2017 14:04:47) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.19-1, Copyright (c) 1999-2017, by Zend Technologies
root@Debian-PiHole:/var# apt-cache show php
Package: php
Source: php-defaults (49)
Version: 1:7.0+49
Installed-Size: 12
Maintainer: Debian PHP Maintainers pkg-php-maint@lists.alioth.debian.org
Architecture: all
Depends: php7.0
Description-en: server-side, HTML-embedded scripting language (default)
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on Debian's default
PHP version (currently 7.0).
Description-md5: b955c03ceec2872c327e77278c943d6a
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php_7.0+49_all.deb
Size: 5016
MD5sum: 439628dab891fa1773fbe5c16ae7cc2d
SHA256: 464539f8a85ed3cb2fb3ac93cfe7755623a4bdf72f91d9c2a1d4ff16cb134a58

root@Debian-PiHole:/var#

Make a debug token: pihole -d

Done! Thank you- the token:
Your debug token is: sox9rxvu3g

Apache has taken over port 80. Disable/uninstall it or move it to another port so lighttpd can use port 80.

Moved Apache to port 8080 and restarted Apache. Browsed to :8080/admin/ and the display still appears as text only, no graphics and no data.

Reran the pihole -d debugger, token is 3lnv84bwf9

Debugger confirms that Apache is now on port 8080, but lighttpd daemon is still failed. Wish I knew more "under the hood".

Thanks!

What is the output of sudo service lighttpd status

Why did you try to access the dashboard through the port that is associated with Apache?

Maybe try also a simple

sudo service lighttpd restart

Smacks forehead! The restart worked. The status query showed it not working so I then issued the restart and that returned:

root@Debian-PiHole:/home/rhsmith# service lighttpd status
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-01-06 13:28:23 CST; 10s ago
Process: 30932 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 30942 (lighttpd)
Tasks: 6 (limit: 4915)
CGroup: /system.slice/lighttpd.service
├─30942 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
├─30952 /usr/bin/php-cgi
├─30953 /usr/bin/php-cgi
├─30954 /usr/bin/php-cgi
├─30955 /usr/bin/php-cgi
└─30956 /usr/bin/php-cgi

Jan 06 13:28:23 Debian-PiHole systemd[1]: Starting Lighttpd Daemon...
Jan 06 13:28:23 Debian-PiHole systemd[1]: Started Lighttpd Daemon.

And access on port 80 shows an active dashboard with a lot of data.

Thank you!

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