Closed
Description
Preconditions
- OS: Linux Mint 18.2 (based on Ubuntu Xenial).
- Magento CE 2.2.0 with sample data is installed by Composer.
- Permissions and ownership set up as instructed on http://devdocs.magento.com/guides/v2.1/install-gde/prereq/file-system-perms.html#perms-private for two-user system (users "magento_user" and "www-data").
Steps to reproduce
- Run
bin/magento setup:di:compile
as Magento file system owner ("magento_user"). - Open the web site.
Expected result
- Web site opens.
Actual result
var/cache/*
folders lose their set-gid bits.var/cache/mage-tags/*
folders are created with "magento_user"'s primary group and 660 permissions.- The web user ("www-data") fails opening the site because it cannot access this content:
1 exception(s):
Exception #0 (Exception): Warning: file_put_contents(/var/www/m2training/public/var/cache//mage-tags/mage---762_COMPILED_CONFIG): failed to open stream: Permission denied in /var/www/m2training/public/vendor/colinmollenhour/cache-backend-file/File.php on line 663
The problem was reported also in this StackExchange question: https://magento.stackexchange.com/q/193727/60128
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.1 release lineThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 release