I’m getting an error on my test server, but I can’t seem to activate debug mode to get details on the error.
(Disclaimer: I’m - obviously - absolutely and utterly clueless here. I’ve never worked with Kirby nor PHP before, I’m setting this up for someone else to maintain…)
Running the latest Kirby as a submodule on Ubuntu 20.04 behind nginx using php7.4-fpm.
I tried putting this in site/config/config.php
:
$ cat site/config/config.php
return [
'debug' => true
];
But that clearly isn’t working!
I also tried it it with this, but that just hides the text and still doesn’t show any debug information:
$ cat site/config/config.php
<?php
return [
'debug' => true
];
How can I fix this? Are there any other ways to find out what the error is? E.g. log files I could check for problems?
FYI, this is the nginx config:
server {
listen 80;
listen [::]:80;
server_name some.ip.address;
root /var/www/html;
index index.php index.html index.htm;
# block some common files
location ~ (?:\.(?:bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$ {
deny all;
}
# block any .htaccess files
location ~ /\.ht {
deny all;
}
location / {
try_files $uri =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
}