cancel
Showing results for 
Search instead for 
Did you mean: 

Mag2 Permissions Problem

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Mag2 Permissions Problem

Can someone please advise me on the following problem

Here is a link to a video showing what is happening https://vimeo.com/228143296

I strongly believe this is a permissions problem


In video clip one I do the following steps

1. In terminal I type in command - php bin/magento setup:upgrade
This brings up a warning message in red
(Permission denied in /var/www/html/top-property-store/vendor/colinmollenhour/cache-backend-file/File.php on line 663)

2. I refresh the page the site is still working

3. I put in command sudo php bin/magento setup:upgrade

4. I refresh the site and the site is down with a warning message

 

In video clip two I do the following

1. I put in command sudo php bin/magento setup:upgrade

2 I put in command sudo php bin/magento setup:di:compile

3. Go to the site then click on a link and the site is down again with the same warning

Warning: file_put_contents(/var/www/html/top-property-store/var/cache//mage-tags/mage---cc6_COMPILED_CONFIG): failed to open stream: Permission denied in /var/www/html/top-property-store/vendor/colinmollenhour/cache-backend-file/File.php on line 663

2 REPLIES 2

Re: Mag2 Permissions Problem

Please give permission to  pub and var folder

 

sudo chmod -R 777 pub/* var/*

Re: Mag2 Permissions Problem

Thank you , this worked for me.