Shopware 6 was uploaded as root and now has permissions issue

We have an issue with permissions here resulting in „500 Internal Server Error“
Looks like it is caused by uploading Shopware 6 as root.

Hosting support says:

"Shopware 6 was uploaded as root. User and group of files in the HTML folder should both be ‚domainuser‘.

For permissions files should be 644 and folders should be 755."

Can someone point to a resource containing Shopware 6 permissions information. Or maybe a recommendation on setting permissions up correctly and securely.

Have a good day

Hi,

your hoster is correct. Change the owner/group to the domain-user, e.g. within the Shopware directory run

chown -R domainuser:domainuser

and then if required change permissions with

chmod -R 755 *

Make sure you perform these commands within the Shopware directory and nowhere else.

Regards