Skip to content

Instantly share code, notes, and snippets.

@Daniyal-Javani
Last active December 2, 2021 13:51
Show Gist options
  • Save Daniyal-Javani/e7a6c70e2bae46945706cd345913c03d to your computer and use it in GitHub Desktop.
Save Daniyal-Javani/e7a6c70e2bae46945706cd345913c03d to your computer and use it in GitHub Desktop.
Set up File Permissions for Laravel
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
@Daniyal-Javani
Copy link
Author

Sail

sudo chown -R $USER:root .
sudo find . -type f -exec chmod 664 {} ;
sudo find . -type d -exec chmod 775 {} ;
sudo chgrp -R root 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