Web admin page won't show up, index.php error

Ahum:

I am not sure if those queries from PC. All iMac/iphone/iPad can have access to both printers through airprint. There is only one PC have access to the printer(on raspberry pi).

You go to the Pi-hole web GUI and click on the brwb068e66b532a.callard.local domain in any of the lists.
It will take you to an overview where you can see which client IP makes those queries.
If you know the client IP, you should know what device right ?

cool, this brings us back to why I am here. the GUI not loading up. Is there a command line/log file I can check? I am curious too.

Than how did you determine below ?

Below one should show all client IP's stored in the database querying that particular name including epoch timestamp:

sqlite3 /etc/pihole/pihole-FTL.db --header --column "SELECT timestamp,client,domain FROM queries WHERE domain LIKE 'brwb068e66b532a.callard.local';"

Try below solution:

And below to wipe the web files fresh:

For your first question, I am running pihole -c in SSH, it shows some key stats of pihole.

For your second question, I think it only shows the IP from the Router. I did do the exact query you gave, and it indeed only shows the IP 192.168.1.1.

I am doing this. I see what you doing, and it seems to make sense. I will update when it is up again.

Thanks.

No luck. the same problem. I have not checked the error file yet. Admin page wont load, everything else just working fine.

Exactly the same error message:
syntax error, unexpected ')' in /var/www/html/admin/index.php on line 12.

Have you changed or added anything to external.conf?

What does

cd /var/www/html/admin
sudo git status

show as output.

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

-rw-r--r-- 1 root root 0 Oct 31 02:57 /etc/lighttpd/external.conf

-rw-r--r-- 1 root root 4066 Oct 31 02:57 /etc/lighttpd/lighttpd.conf

Hi Dan,

No, I have not manually added anything to external.conf. Will any other app/web service do that? I recently had a plex server running. After that, pihole web service went down.

For second question, here is the output. seems clean

On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

Hi jfb,

Correct, nothing in external.conf
I did not change anything in lighttpd.conf either.

Possibly, is plex still installed or did you remove it?

What files are in /etc/lighttpd/conf-enabled/?

Okay, so all the Pi-hole created and maintained files are correct, which means the problem lies elsewhere,

Yes, plex still running, streaming kids videos.

output from /etc/lighttpd/conf-enabled/
total 8
drwxr-xr-x 2 root root 4096 Oct 15 14:55 .
drwxr-xr-x 4 root root 4096 Oct 31 21:25 ..
lrwxrwxrwx 1 root root 33 Oct 15 14:55 10-fastcgi.conf -> ../conf-available/10-fastcgi.conf
lrwxrwxrwx 1 root root 37 Oct 15 14:55 15-fastcgi-php.conf -> ../conf-available/15-fastcgi-php.conf
lrwxrwxrwx 1 root root 42 Aug 20 05:38 90-javascript-alias.conf -> ../conf-available/90-javascript-alias.conf

I checked ports. no conflicts wither other services.... it is just weird...

That's not ours, what is the contents?

there is only one line in there:
alias.url += ("/javascript" => "/usr/share/javascript")

This is a default:

dan@raspberrypi:/etc/lighttpd/conf-enabled $ ls -la
total 8
drwxr-xr-x 2 root root 4096 Oct 19 00:31 .
drwxr-xr-x 4 root root 4096 Oct 19 00:31 ..
lrwxrwxrwx 1 root root   33 Oct 19 00:31 10-fastcgi.conf -> ../conf-available/10-fastcgi.conf
lrwxrwxrwx 1 root root   37 Oct 19 00:31 15-fastcgi-php.conf -> ../conf-available/15-fastcgi-php.conf
lrwxrwxrwx 1 root root   38 Oct 19 00:30 99-unconfigured.conf -> ../conf-available/99-unconfigured.conf
dan@raspberrypi:/etc/lighttpd/conf-enabled $ cat *
--10-fastcgi.conf
# /usr/share/doc/lighttpd/fastcgi.txt.gz
# http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi

server.modules += ( "mod_fastcgi" )

--15-fastcgi-php.conf
# -*- depends: fastcgi -*-
# /usr/share/doc/lighttpd/fastcgi.txt.gz
# http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi

## Start an FastCGI server for php (needs the php5-cgi package)
fastcgi.server += ( ".php" =>
        ((
                "bin-path" => "/usr/bin/php-cgi",
                "socket" => "/var/run/lighttpd/php.socket",
                "max-procs" => 1,
                "bin-environment" => (
                        "PHP_FCGI_CHILDREN" => "4",
                        "PHP_FCGI_MAX_REQUESTS" => "10000"
                ),
                "bin-copy-environment" => (
                        "PATH", "SHELL", "USER"
                ),
                "broken-scriptfilename" => "enable"
        ))
)

--99-unconfigured.conf
# override prior index-file.name directive
# to fall back to default index.lighttpd.html
index-file.names := ( "index.php", "index.html", "index.lighttpd.html" )