phpmyadmin in the URL does not show the PI-Hole standard nice formatted tip, but

if i extend the default URL, i.e. xxx.xxx.xxx.xxx/ with any other name as "phpmyadmin", the nice default tip / hint of PI Hole pops up, BUT if i use the word xxx.xxx.xxx.xxx/phpmyadmin this rendering of the standard nice PI Hole page comes up:

Screenshot 2020-06-11 at 17.14.08

How come? I am on buster / latest PI Hole on a fresh install. So there is nothing like, apache2, mysql or phpadmin installed...

Please let me know how to rectify...
cheers
tomek

Can you not use the normal URL? http://xxx.xxx.xxx.xxx/admin

Is there a need to use a different path on the URL?

Hi,

Can you not use the normal URL? [http://xxx.xxx.xxx.xxx/admin](http://xxx.xxx.xxx.xxx/admin)

Sure.

But it is a little strange that you can use any name (exception "admin") after the main URL part but phpmyadmin!

You all the time get the nice picture (see attachment 1 and only if you type: 192.168.20.15/pypmyadmin you get this error based info in the browser... (see attachment 2).

for me it seems to be a permission thing, where the .css and the .php can´t be read or can´t be executed?

cheers
thomas

(Moderator edit: removed email signature with personal details)

Screenshot 2020-06-11 at 18.58.24.png

Screenshot 2020-06-11 at 17.14.08.png

Check trailing slash (with & without).
One is a folder, the other a file request.

http://192.168.20.15/phpmyadmin

http://192.168.20.15/phpmyadmin/

I believe got nothing to do with phpmyadmin specific :wink:

good morning,

yes, nothing to do with "phpmyadmin". it was me, mixing it up... i came from a mysql, phpmyadmin, apache2 installation and installed pi-hole with lighttpd. everything was working but phpmyadmin was not!

anyway, if you end an URL with a / why is the nice pi hole page not shown? it seems to me that the identification of "not existing" works but the process is not allowed to execute the .css and .php code of pi-hole...

any idea?

cheers
thomas

I have had the same problem (also Buster and Pihole 5).

I have installed phpLiteAdmin using this script in a modified way:
https://raw.githubusercontent.com/jpgpi250/piholemanual/master/phpliteadmin.sh
Modification: all phpLiteAdmin files are placed in a separate directory: /var/www/html/phpliteadmin and not directly in var/www/html

Based on this:
1)
Add in /etc/lighttpd/external.conf the following

server.modules += ( "mod_alias" )

# Entering just "pi.hole.sql" into a browser redirects to "pi.hole/phpliteadmin/phpliteadmin.php"
$HTTP["host"] == "pi.hole.sql" {
    $HTTP["url"] == "/" {
        url.redirect = ( "" => "/phpliteadmin/phpliteadmin.php" )
    }
}

For shure set rights: sudo chown -R www-data:www-data /var/www

Create or add in /etc/pihole/custom.list the domain and IP address

<IP address of your PI> pi.hole
<IP address of your PI> pi.hole.sql
sudo service lighttpd restart
sudo service pihole-FTL restart

From now you can enter in your browser:

pi.hole for the admin pages
pi.hole.sql for the phpLiteAdmin pages

Nope.
Only thing I know is that when you request a file, folder or alias that doesnt exist, the 404 error handler is called upon:

pi@ph5:~ $ cat /etc/lighttpd/lighttpd.conf
[..]
server.document-root        = "/var/www/html"
server.error-handler-404    = "/pihole/index.php"
[..]

So you would have to investigate /var/www/html/pihole/index.php why you get a different response.