Setup Magento Permissions Script
Magento permissions can be an absolute pain! Use one of the solutions below to setup Magento permissions easily.
1. SSH Script
#!/bin/bash
find www -name .htaccess -exec chmod 604 {} ;
find www -name *.php -exec chmod 644 {} ;
find www -type d -exec chmod 705 {} ;
2. SSH Command Line
find ./ -type d -exec chmod 755 {} \; && find ./ -type f -exec chmod 644 {} \;
3. PHP Permissions Script
<?php
system(‘chmod -R 744 *’);
system(‘find . -type d -exec chmod 755 {} \;’);
?>
So… whats next?




(4.88 out of 5)