Last active
August 29, 2015 14:01
-
-
Save jacks0n/42410da03f7921cb3408 to your computer and use it in GitHub Desktop.
Fixes / restores permissions for most CMSs
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
# General | |
find . -type f -exec chmod 644 {} \; | |
find . -type d -exec chmod 755 {} \; | |
# Magento | |
find . -type f -exec chmod 644 {} \; | |
find . -type d -exec chmod 755 {} \; | |
chmod 550 mage # For magento 1.5+ | |
# Joomla | |
find . -type f -exec chmod 644 {} \; | |
find . -type d -exec chmod 755 {} \; | |
chmod 707 images | |
chmod 707 cache | |
# Scripts | |
find . -iname '*.sh' -exec chmod +x {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment