Created
October 31, 2021 03:44
-
-
Save quan-vu/5a27216344c845b409842e98f3ea8788 to your computer and use it in GitHub Desktop.
How to Set all directories to 755 And all files to 644
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
cd /var/www/html | |
sudo chown -R www-data:www-data ./ | |
sudo find . -type d -exec chmod 0755 {} \; | |
sudo find . -type f -exec chmod 0644 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment