0

I'm having a problem with my Magento2 & Docker setup. It's basically the same issue as outlined in this question:

Magento 2: How to fix incorrect permissions after executing setup:upgrade and/or setup:di:compile

I tried the suggested fix, running sudo -u www-data php bin/magento setup:upgrade, however, files in the generated folder are still set as root:root instead of www-data.

Does anyone have an idea why that is the case and what else I could do to get the bin/magento setup:upgrade command to generate ALL files as the www-data user?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.