0

Every time I installed new extensions or do something that generates files and folders, it's like I lose the group, permissions, or magento generate a bad URL, like the cache and the double slash (...cache//...) I need to execute, a lot of times, one or more of the next commands:

sudo chown user:www-data -R .
sudo chmod 777 var
sudo chmod 777 pub
sudo rm -rf var/cache/*
sudo rm -rf generated/*
...

I would like to know if there is any way to force Magento always use the group www-data, and do not create the double slash into the cache folder

1 Answer 1

0

Please put these permission :

chown -R www-data /var/www/html/yourproject/pub/static/
chown -R www-data /var/www/html/yourproject/pub/media/
chown -R www-data /var/www/html/yourproject/var/
chown -R www-data /var/www/html/yourproject/app/etc/
1
  • I put all that permissions, but when magento update the files they changed
    – ooootramas
    Commented Jul 6, 2018 at 10:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.