Created
June 19, 2011 01:59
-
-
Save monokrome/1033665 to your computer and use it in GitHub Desktop.
Fixes permissions for /var/www on my Ubuntu machine
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
#!/usr/bin/env bash | |
chown -R www-data:www-data /var/www | |
chmod -R 660 /var/www | |
find /var/www -type d -exec chmod 770 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment