How to Reset File Permissions for Magento


On our hosting servers, PHP run as suEXEC which means that no special file permissions are needed to run Magento. If you have transferred your site from another provider or need to reset your file permissions, please run the following commands from SSH (relative to Magento root directory):

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

On some servers, the web server process runs under a generic user such as 'nobody'. This can be a problem as certain areas within Magento needs to be writable in order to use Magento Connect, file uploads, etc. On our servers, the PHP/web server process will run under your own account user and thus you will not have this problem. You will be able to use Magento Connect to upgrade Magento and install extensions without hazardous world-writable (chmod 777) permissions.


Was this answer helpful?