I am using Linux Mint. I installed a quick package of Magento 2 Theme. I tried to browse Admin Panel. But I couldn't browse. Then I found I have to change file & folder permission. I tried below command to change file permission.
foysal@foysal-laptop /var/www/html/aloquick $ find . -type f -exec chmod 644 {} \;
I got below result.
chmod: changing permissions of './var/generation/Magento/Weee/Model/Tax/Proxy.php': Operation not permitted
I tried below command to change folder permission.
foysal@foysal-laptop /var/www/html/aloquick $ find . -type d -exec chmod 775 {} \;
I got below result.
chmod: changing permissions of './var/generation': Operation not permitted
Where is the issue ? Am I using wrong commands ?
UPDATE
I executed (sudo find . -type f -exec chmod 644 {} \; sudo find . -type d -exec chmod 775 {} \;
) this commands. But I can't browse both front end and back end of the site.
Best Answer
Give 775 permission to your
var
andpub/media
directory.Run below command for the same.
If in case in your server 775 not work then try same command with 777 for those 2 folders and check.