Last active
May 18, 2022 16:28
-
-
Save PawelGIX/7021dc0bb5212dc6581185890edf6cfa to your computer and use it in GitHub Desktop.
Fix directory permissions
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
#!/bin/bash | |
sudo chown www-data:www-data -R . | |
sudo find /var/www/html -type d -exec chmod u=rwx,go=rx {} \; | |
sudo find /var/www/html -type f -exec chmod u=rw,go=r {} \; | |
sudo find /var/www/html -type d -exec chmod 755 {} \; | |
sudo find /var/www/html -type f -exec chmod 644 {} \; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment