Search code examples
shopware

Shopware6 : Key path "... / config / jwt / public.pem" permission error


After installation, I get below error message in browser

Key path "... / config / jwt / public.pem" does not exist or is not readable

After changing the permissions of public.pem to 660 or 600 error message changed to

"not exist or not readable"


Solution

  • I preferred to solve it with ACL

    setfacl -m u:www-data:r config/jwt/public.pem
    setfacl -m u:www-data:r config/jwt/private.pem