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

  • version of your magento ? – Pradeep Sanku Aug 3 '16 at 10:08
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 {} +
  • 777 ??? It's very dangerous. no??? – Alessandro Gnola Aug 3 '16 at 12:43
  • we have to give write permissions to media and var folders to which magento needs to write logs etc – Pradeep Sanku Aug 3 '16 at 12:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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