These commands will reset the file permissions on the base Magento installation to the correct permissions:
-
find . -type f -exec chmod 644 {} \;
-
find . -type d -exec chmod 755 {} \;
-
chmod o+w var var/.htaccess app/etc
-
chmod 550 pear
-
chmod -R o+w media