phpMyAdmin throws a blank page and error message

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: {
    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?

Did you confirm these rights?

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

Thank you!

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