Here’s how to reset your file and directory permissions if PHP is running through FastCGI, suPHP, or LSAPI:
1. find . -type f -exec chmod 644 {} \;
2. find . -type d -exec chmod 755 {} \;
3. chmod 550 pear
4. chmod 550 mage #for magento 1.5+
If PHP is running as a module (DSO), you will need to do this:
1. #for magento 1.5+
2. find . -type f -exec chmod 644 {} \;
3. find . -type d -exec chmod 755 {} \;
4. chmod o+w var var/.htaccess app/etc
5. chmod 550 mage
6. chmod -R o+w media
If you are running Pre 1.5 you can copy and paste this
1. find . -type f -exec chmod 644 {} \;
2. find . -type d -exec chmod 755 {} \;
3. chmod o+w var var/.htaccess app/etc
4. chmod 550 pear
5. chmod -R o+w media
Click to rate this post!
[Total: 0 Average: 0]