klaushaidinger.com

Icon

Reset file – permissions in Magento and WordPress

Here are the scripts / commands to set the correct („factory“) permissions in magento and wordpress.

Magento:
find . -type f \-exec chmod 644 {} \;
find . -type d \-exec chmod 755 {} \;
find ./var -type d \-exec chmod 777 {} \;
find ./var -type f \-exec chmod 666 {} \;
find ./media -type d \-exec chmod 777 {} \;
find ./media -type f \-exec chmod 666 {} \;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml

WordPress:
find . -type f \-exec chmod 644 {} \;
find . -type d \-exec chmod 755 {} \;
find ./wp-content -type d -exec chmod 775 {} \;
find ./wp-content -type f -exec chmod 664 {} \;
chmod 660 ./wp-config.php

Category: Magento

Tagged:

Comments are closed.