Skip to content

PHP Warning: fopen failed to open stream: Permission denied #10588

@premgurung

Description

@premgurung

Description

after successfully installtion of magento 2 unabel to access the magento web server

error
PHP Warning: fopen(/var/www/digitivy-prodmagento/MagentoStore/var/cache//mage-tags/mage---2a5_CONFIG): failed to open stream: Permission denied in /var/www/digitivy-prodmagento/MagentoStore/vendor/colinmollenhour/cache-backend-file/File.php on line 646
[Fri Aug 18 13:20:39.957447 2017] [:error] [pid 26538] [client 10.1.1.198:56567] PHP Warning: fopen(/var/www/digitivy-prodmagento/MagentoStore/var/cache//mage-tags/mage---2a5_MAGE): failed to open stream: Permission denied in /var/www/digitivy-prodmagento/MagentoStore/vendor/colinmollenhour/cache-backend-file/File.php on line 646

Preconditions

magento 2.1
php 5.6
rds mysql 5.6

Steps to reproduce

install magento 2 prerequest and change the permission accordingly

sudo find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} ;
sudo find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} ;
sudo chown -R magento:apache .
sudo chmod u+x bin/magento

Actual Result:

after successfull installation of the magento 2 unable to access the home page .please find the error belwo
;

PHP Warning: fopen(/var/www/digitivy-prodmagento/MagentoStore/var/cache//mage-tags/mage---2a5_CONFIG): failed to open stream: Permission denied in /var/www/digitivy-prodmagento/MagentoStore/vendor/colinmollenhour/cache-backend-file/File.php on line 646
[Fri Aug 18 13:20:39.957447 2017] [:error] [pid 26538] [client 10.1.1.198:56567] PHP Warning: fopen(/var/www/digitivy-prodmagento/MagentoStore/var/cache//mage-tags/mage---2a5_MAGE): failed to open stream: Permission denied in /var/www/digitivy-prodmagento/MagentoStore/vendor/colinmollenhour/cache-backend-file/File.php on line 646

Expected result

after successfull installation of the magento 2 able to access the home page

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions