0

The magento2 cache file is the root user group, not nginx

I executed the following command:

#user:ben
sudo chown -R magento:nginx /home/Production/abccom/public_html
# user: magento
 find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
 find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
 chown -R :nginx . 
 chmod u+x bin/magento

but : var/cache/mage-tags/xxxxx

rw-rw-r--  1 nginx   nginx 38457 Jan  5 04:36 mage---3a8_MAGE
-rw-rw-r--  1 root    root  16828 Jan  5 04:15 mage---3a8_REFLECTION
-rw-rw-r--  1 nginx   nginx  1108 Jan  5 04:29 mage---3a8_STORE
-rw-rw-r--  1 nginx   nginx   371 Jan  5 04:29 mage---3a8_STORE_RELATIONS
-rw-rw-r--  1 nginx   nginx  1120 Jan  5 04:35 mage---3a8_TRANSLATE
-rw-rw-r--  1 nginx   nginx    20 Jan  5 04:28 mage---3a8_USER_ASSIGNED_RO
-rw-rw-r--  1 root    root     42 Jan  5 04:14 mage---3a8_WEBSERVICE

somes file user and grouo is root ,The file does not have full write permission enter image description here

How to solve it

1
  • Any solution? The same error here Feb 1 at 13:12

0

Your Answer

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

Browse other questions tagged or ask your own question.