Resetting File Permissions

  • Applies To: All Services
  • Difficulty: Easy
  • Time Needed: 5 minutes
  • Tools Needed: SSH
  • Reading Time: 0:01 min

Here's how to reset your file and directory permissions for Magento back to their default and secure permissions:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 550 pear

For Magento 1.5.x or later:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 550 mage

The above commands need to be executed from the root directory where Magento is installed.

Save. Share. Submit.

Related Articles

Sorry, no related entries exist for this article.

Hide Sidebar