0

I have some doubs for setting the permissions of magento when the web site go to online

Always i setting file and directory 755.

It's correct?

thanks Alessandro

1
  • version of your magento ? Commented Aug 3, 2016 at 10:08

1 Answer 1

0

All folders permission should be 755 except var and media which should be 777. All file permission should be 644 except files under var and media which should be 777

to give permission to magento run the following command through terminal.

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

sudo find media/ -type d -exec chmod 777 {} +
sudo find media/ -type f -exec chmod 777 {} +

sudo find var/ -type d -exec chmod 777 {} +
sudo find var/ -type f -exec chmod 777 {} +
2
  • 777 ??? It's very dangerous. no??? Commented Aug 3, 2016 at 12:43
  • we have to give write permissions to media and var folders to which magento needs to write logs etc Commented Aug 3, 2016 at 12:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.