Reset Magento Directory Permission

September 16th, 2009 | Author: Sunny

When install new extension to Magento using Magento Connect, it will ask you to set the directory permission to writable to server user. In order to do it, at command line, type in:

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

Once finish the installation, you should reset the permission:

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

I assume you know Unix “chmod” to change permission. The number 777, each digit is the permission for Owner, Group, and World. 7 means Writable, Readable, and Executable. You should think it in binary: 7 is “111″ in binary mode, and it means all permission is on. 1 is on, 0 is off. so, 755 means that All permission for owner, but only readable and executable to group and world because 5 is “101″.

Category: Magento | Tags: , , , | Leave a Comment