Hey there 😁
Whilst spending the last 2 days attempting to install flarum I've been stuck on the same errors. which are as follows
#1 Warning: file_put_contents(/www/flarum/storage/sessions/gdCZnE9fzjyIVIAi5bj2KTi0MI28XHLeUtCcT6tu): failed to open stream: Permission denied in /www/flarum/vendor/illuminate/filesystem/Filesystem.php on line 122
#2 Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /www/flarum/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 Stack trace: #0 /www/flarum/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /www/flarum/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /www/flarum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(98): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Laminas\Diactoros\Response\HtmlResponse)) #3 /www/flarum/vendor/flarum/core/src/Http/Server.php(42): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #4 /www/flarum/public/index.php(26): Flarum\Http\Server->listen() #5 {main} thrown in /www/flarum/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php on line 24
I have tried the following:
sudo chown -R www-data: storage &
sudo chmod -R 755 flarum
any other information needed just let me know and ill be happy to add it
thanks for the help