Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malkafly/2c7f67c4551de5d8c4573e39f2302c43 to your computer and use it in GitHub Desktop.
Save malkafly/2c7f67c4551de5d8c4573e39f2302c43 to your computer and use it in GitHub Desktop.
Laravel folder permissions
cd /var/www/my_website_serving_dir
sudo chown -R $USER:www-data .
sudo find . -type f -exec chmod 664 {} \;
sudo find . -type d -exec chmod 775 {} \;
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment