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

On the Pi you could use the localhost IP 127.0.0.1 for in the /etc/hosts file.
But question still stands, who is making those queries ?
My hack only works on the PC's/systems that make those queries.

yes, localhost 127.0.0.1 is already in the host file.

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?