1cd [..LARAVEL PROJECT ROOT]
2sudo find . -type f -exec chmod 644 {} \;
3sudo find . -type d -exec chmod 755 {} \;
4sudo chmod -R 777 ./storage
5sudo chmod -R 777 ./bootstrap/cache/
1sudo chgrp -R www-data storage bootstrap/cache
2sudo chmod -R ug+rwx storage bootstrap/cache
1cd /path/to/root;
2sudo chmod -R 777 ./
3sudo chown -R www-data:www-data ./
4sudo usermod -a -G www-data ubuntu
5sudo find ./ -type f -exec chmod 644 {} \;
6sudo find ./ -type d -exec chmod 755 {} \;
7sudo chgrp -R www-data storage bootstrap/cache
8sudo chmod -R ug+rwx storage bootstrap/cache