Question

I am getting Unexpected error,

Exception: Warning: SessionHandler::read(): open(/var/opt/remi/php72/lib/php/session/sess_5292j25aa4ugpdgrv9r6a3l3p8, O_RDWR) failed: Permission denied (13) in /usr/share/nginx/html/gta/vendor/magento/framework/Session/SaveHandler/Native.php on line 22 in /usr/share/nginx/html/gta/vendor/magento/framework/App/ErrorHandler.php:61

How to solve the error?

Pas de solution correcte

Autres conseils

Doesn't seems to be Magento related, but PHP related.

The error says Permission denied, so the user executing the PHP code can't write on the PHP session path.

As you mention nginx, I assume you're using php-fpm. Check your pool to see the user and group and verify if it matches the rights on the path /var/opt/remi/php72/lib/php/session

Sometimes it also happens when nginx is using the nginx user and not www-data user.

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top