I\'m using Apache Web Server that has the owner set to _www:_www
. I never know what is the best practice with file permissions, for example when I create new La
This worked for me:
cd [..LARAVEL PROJECT ROOT]
sudo find . -type f -exec chmod 644 {} \;
sudo find . -type d -exec chmod 755 {} \;
sudo chmod -R 777 ./storage
sudo chmod -R 777 ./bootstrap/cache/
Only if you use npm (VUE, compiling SASS, etc..) add this:
sudo chmod -R 777 ./node_modules/
What it does:
Note: Maybe you can not, or don't need, to do it with sudo prefix. it depends on your user's permissions, group, etc...