Magento

eCommerce Software for Online Growth

Resetting File Permissions

Last modified by Crucial on Fri, July 31, 2009 17:33
Source|Old Revisions  |  Back To Group

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

If PHP is running as a module (DSO), you will need to do this:

  1. find . -type f -exec chmod 644 {} \;
  2. find . -type d -exec chmod 755 {} \;
  3. chmod o+w var var/.htaccess includes includes/config.php app/etc
  4. chmod 550 pear
  5. chmod -R o+w media

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

If you do not have access to SSH:

  1. Unzip magento-cleanup.php to the root directory where Magento is installed.



 

Magento User Guide

Magento Enterprise Available now

Professional Services from the Magento Team

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs
© Copyright 2010 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
177730 users|1032 users currently online|277196 forum posts