Blog

Magento Connect Permissions

If you access Magento Connect and it’s telling you to check the write permissions (see image below), there’s a simple way to fix this.

Magento Connect Error write permission
Magento Connect write permissions error

Open up your SSH client and go to the directory where Magento is installed. Once you are there, copy and paste the following command:

find . -type d -exec chmod 777 {} \;

That will change the permissions on all the directories to writable, and you should be able to use Magento Connect now.

After you’ve done what you’ve need to do in Magento Connect,
Here’s how to reset your file and directory permissions if PHP is running through FastCGI, suPHP, or LSAPI:

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

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

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

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

Let’s enjoy!

Leave a Reply