I installed flarum on pi5 arm device. and I am running caddy. I have the following Caddyfile
I wish it to be accessible using the flarum.example.org
What have I done wrong here ?
:4914 {
root * /home/pi/data/flarum/public
php_fastcgi unix//var/run/php/php8.2-fpm.sock
encode gzip
file_server
header /assets/* {
+Cache-Control "public, must-revalidate, proxy-revalidate"
+Cache-Control "max-age=25000"
Pragma "public"
}
}
flarum.example.org {
reverse_proxy http://192.168.0.113:4914
}
pi@pi5-8-128-selfhosted:~/data/flarum $ php flarum info
Command "info" is not defined.
pi@pi5-8-128-selfhosted:~/data/flarum $ php flarum cache:clear
In StreamHandler.php line 115:
The stream or file "/home/pi/data/flarum/storage/logs/flarum-installer.log" could not be opened in app
end mode: Failed to open stream: Permission denied
pi@pi5-8-128-selfhosted:~/data/flarum $ sudo php flarum cache:clear
There are no commands defined in the "cache" namespace.