When I try to log out the user I receive a 500 Internal Server Error.
That's the error in the error.log:
2017/06/25 17:09:28 [error] 25421#0: *2861 FastCGI sent in stderr: "PHP message: PHP Warning: SessionHandler::read(): open(/var/lib/php/session/sess_blqbtqql74ss0141jjjiirbnq2, O_RDWR) failed: Permission denied (13) in /var/www/domain_name/web/flarum/vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php on line 69
PHP message: PHP Warning: SessionHandler::write(): open(/var/lib/php/session/sess_blqbtqql74ss0141jjjiirbnq2, O_RDWR) failed: Permission denied (13) in /var/www/domain_name/web/flarum/vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php on line 77
PHP message: PHP Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0" while reading response header from upstream, client: 188.114.102.48, server: domain_name.host.it, request: "GET /flarum/logout?token=7jnh2foNVXgKl1mJHq9k3rjKPcHBWLvpApvVGeqK HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm-domain_name.sock:", host: "domain_name.host.it", referrer: "https://domain_name.host.it/flarum/"
Thanks for any help.