1. Caddy version (caddy version
):
v2.4.3 h1:Y1FaV2N4WO3rBqxSYA8UZsZTQdN+PwcoOcAiZTM8C0I=
2. How I run Caddy:
installed as systemd with
php 7.3 including php7.3-fpm php7.3-mbstring php7.3-mysql php7.3-curl php7.3-gd php7.3-curl php7.3-zip php7.3-xml installed.
mariadb 10.3.9
a. System environment:
Raspberry Pi 4
OS Raspbian 10 (Buster)
b. Command:
run via systemd
Paste command here.
c. Service/unit/compose file:
[Unit]
Description=Caddy
Documentation=https://caddyserver.com/docs/
After=network.target network-online.target
Requires=network-online.target
[Service]
Type=notify
User=caddy
Group=caddy
ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
PrivateTmp=true
ProtectSystem=full
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target
d. My complete Caddyfile or JSON config:
localhost:80 {
encode zstd gzip
templates
root * /var/www/localhost
file_server browse
}
the4016.com {
encode zstd gzip
templates
root * /var/www/the4016.com
php_fastcgi unix//run/php/php7.3-fpm.sock
@wp-admin {
path not ^/wp-admin/*
}
rewrite @wp-admin {path}/index.php?{query}
file_server browse
}
3. The problem I’m having:
I am getting the dreaded 500 server error on several of the wp-admin pages.
The main site seems to be ok and login does work however display of Dashboard pages produces the error. some however do not - for instance I can access the site setting page, the menus page and even add users just not the main dashboard.
I don’t think it is a caddy error as that setup seems to have gone ok and have also had reverse proxy for non wordpress site and a sub-domain working prior to installing wordpress however I am struggling to determine where the issue lies i.e. wordpress, caddy, php or other - I cannot seem to find any logs that produce any details.
Any advice to a complete newbie on how to pinpoint the area to focus on would be appreciated.
4. Error messages and/or full log output:
Cannot get any log messages at all - that is half the problem as I cannot pin point the actual part of the system that is an error.
5. What I already tried:
Numerous versions of caddy file including
-
simple index.php rather than wordpress and sucessfully displays php version info.
-
php_fastcgi 127.0.0.1:9000 (also changed php.ini to match)
no themes or plugins in wordpress
Debug is turned on in wordpress - no output.
ufw disabled
6. Links to relevant resources:
Numerous forums and online articles for php, wordpress and caddy