I'm trying to run a Flarum site on my Raspberry Pi. Everything has been going quite well so far but this morning people complained they could log in and I started seeing these errors in my logs:
PHP Warning: file_put_contents(/var/www/scams/storage/sessions/xxx): failed to open stream: Permission denied in /var/www/scams/vendor/illuminate/filesystem/Filesystem.php on line 133
How can I fix this? I've given the folder the correct permissions (maybe even too high permissions):
$ ls -la
drwxrwxrwx 10 pi pi 4096 Dec 20 16:53 storage
drwxrwxrwx 46 pi pi 4096 Feb 26 18:17 vendor