phpMyAdmin throws a blank page and error message


(Raphael Kabo) #1

I’m really enjoying Caddy so far and I’m sure what I’m doing is a simple mistake:

  • I’m trying to run phpMyAdmin.
  • Caddy runs as www-data:www-data.
  • php-fpm runs as www-data:www-data.
  • The phpmyadmin directory is recursively owned by www-data:www-data.
  • I’ve tried running caddy as root and it made no difference.
  • Other websites on the machine that use PHP run just fine.

Here’s the relevant section of my Caddyfile:

domain.com/phpmyadmin {
    root /var/www/phpmyadmin
    fastcgi / /run/php/php7.2-fpm.sock php
    errors /var/log/caddy/phpmyadmin/error.log
}

The only message I get in /var/log/caddy/phpmyadmin/error.log is:

05/Jan/2019:11:41:11 +0000 [ERROR 0 /.css.php] Primary script unknown

What am I doing wrong?


(Magikstm) #2

Did you confirm these rights?


(Raphael Kabo) #3

Guess who didn’t chown the enclosing directory :man_facepalming:

Thank you!