Created
April 6, 2021 05:56
-
-
Save im-noob/e04acf12e485e62c9ec7c036d30ebea5 to your computer and use it in GitHub Desktop.
Laravel Permission On Server
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 www-data:www-data html/ | |
sudo usermod -a -G www-data root | |
sudo find html/ -type f -exec chmod 644 {} \; | |
sudo find html/ -type d -exec chmod 755 {} \; | |
cd html/ | |
sudo chgrp -R www-data storage bootstrap/cache | |
sudo chmod -R ug+rwx storage bootstrap/cache | |
reference: https://stackoverflow.com/a/37266353 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment