Last active
March 25, 2020 03:55
-
-
Save afiqiqmal/4d1401185f53e0334a6314c60be5bc09 to your computer and use it in GitHub Desktop.
Laravel File Permission
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
composer install | |
# Change folder directory permission | |
sudo find project_folder -type f -exec chmod 664 {} \; | |
sudo find project_folder -type d -exec chmod 775 {} \; | |
# Change laravel directory permission | |
sudo chgrp -R www-data storage bootstrap/cache | |
sudo chmod -R ug+rwx storage bootstrap/cache | |
# Inherit Logs child creation | |
sudo chmod g+s storage/logs/ | |
sudo setfacl -d -m g::rwx storage/logs/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment