Last active
December 2, 2021 13:51
-
-
Save Daniyal-Javani/e7a6c70e2bae46945706cd345913c03d to your computer and use it in GitHub Desktop.
Set up File Permissions for Laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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