Fixing Magento File Permission Error


During the Magento backup function. It will change the file permission to writable thus making your site inoperable.

To fix it, run the following commands.


find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \;
chmod 550 pear
chmod 550 mage #for magento 1.5+