Interactive Books' Atelier's blog

How are you?

Laravel installation set permissions for ubuntu

1 year ago | Quick Recipe
sudo chown -R www-data:www-data /path/to/your/laravel/root/directory

Next go to the root directory of your Laravel instance and change the permission of following folders

sudo chgrp -R www-data /var/www/html/LARAVEL
sudo chmod -R 775 /var/www/LARAVEL/storage

source: https://www.howtoforge.com/tutorial/install-laravel-on-ubuntu-for-apache/


older version:

sudo chgrp -R www-data bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache

Source: https://stackoverflow.com/questions/30639174/file-permissions-for-laravel-5-and-others, answered originally by bgies.com