0

How to fix file permission, we don't want every time make command for sudo chmod -R -v 777 var

Using Linux,centos7,cloud server.having 3 accounts. About file permission, sometime getting warning can't inside the website, need to refresh 2~3 times.

{"0":"Warning: file_put_contents(\/home\/xxx\/public_html\/var\/cache\/\/mage-tags\/mage---b8e_CONFIG): failed to open stream: Permission denied in
  • Try this chown apache . -R and chgrp apache . -R – Abhishek Panchal Dec 13 '18 at 16:21
  • This is for root? or cd for user? thank you! @AbhishekPanchal – niceonelee Dec 13 '18 at 16:23
  • This from your magento directory. e.g /var/www/html/magento23/ – Abhishek Panchal Dec 13 '18 at 16:24
  • Sorry,i dont understand. we look like cd /home/(user_name)/public_html/. So cd /home/(user_name)/public_html/ and then chown apache . -R? thank you! @AbhishekPanchal – niceonelee Dec 13 '18 at 16:27
  • Yeah that's correct in your case. – Abhishek Panchal Dec 13 '18 at 16:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.