TransWikia.com

Magento 2 cache files and generated files keep chanching ownership

Magento Asked by Nicklas Gilbertsson on January 31, 2021

I have created a superuser and set my project owner and group to be magneto www-data . I’ve set the folders and file permissions using the commands below.
I followed the documentation from Magento

But for some reason the files inside my cache folder and genreated folder keeps changing ownership.

find . -type d -exec chmod 755 {} ; && find . -type f -exec chmod 644 {} ; && chmod u+x bin/magento

find var generated pub/static pub/media app/etc -type f -exec chmod g+w {} + && find var generated pub/static pub/media app/etc -type d -exec chmod g+ws {} + && chown -R :www-data . && chmod u+x bin/magento

I found a person with thesame issue but without any resolution:

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP