Forked from AkshatJen/gist:593f35862129133021ee08cb9e379290
Created
April 9, 2022 03:03
-
-
Save malkafly/2c7f67c4551de5d8c4573e39f2302c43 to your computer and use it in GitHub Desktop.
Laravel folder permissions
This file contains 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
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