Hello.
I'm installing Flarum on VPS. Centos 7. Apache and PHP are connected (tried different versions 7.1, 7.4, 8). After command:
composer create-project flarum/flarum .
I go to the site and see this error
Warning: file_put_contents(/sites/WEBSITE_FOLDER/storage/sessions/QXE4EHmWqp6tnnYNF0aGo08V2iNAOjd7pPk0Re7F): Failed to open stream: Permission denied in /sites/WEBSITE_FOLDER/vendor/illuminate/filesystem/Filesystem.php on line 187
Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /sites/WEBSITE_FOLDER/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 Stack trace: #0 /sites/WEBSITE_FOLDER/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /sites/WEBSITE_FOLDER/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /sites/WEBSITE_FOLDER/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(98): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Laminas\Diactoros\Response\HtmlResponse)) #3 /sites/WEBSITE_FOLDER/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #4 /sites/WEBSITE_FOLDER/public/index.php(26): Flarum\Http\Server->listen() #5 {main} thrown in /sites/WEBSITE_FOLDER/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php on line 24
In Putty, I see everything is fine (I mean the installation there went like normal), there seems to be no errors, except for this
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
but i think it's a minor mistake.
what can be done?