Permissions needed to run Magento

Below are the permissions needed to run the magento, run each command one by one

find . -type f -exec chmod 644 {} /;                     // 644 permission for files


find . -type d -exec chmod 755 {} /;                      // 755 permission for directory


find ./var -type d -exec chmod 777 {} /;             // 777 permission for var folder

 
find ./media -type d -exec chmod 777 {} /;         //   777 permission for media folder

chmod 777 ./app/etc                                 //   777 permission for etc folder

chmod 644 ./app/etc/*.xml                                //   644 permission for xml files

0   0
Aditya Singh
profile Mike 25th October 2024

Thank you for sharing this amazing piece of content. You are doing a great job, thanks for it.

Masters of the Air Shearling Jacket

Write a comment ...
Post comment
Cancel
profile Jaxon 7th September 2024

Are any of you interested in buying doors that will suit your architectural style? This door company sells Contemporary, Shaker, Traditional, Craftsman, French, and Victorian doors. Here's the link to https://caldwells.com/exterior-doors more of them.

Write a comment ...
Post comment
Cancel
profile kevin 7th December 2016
thank you so much for this information
Ranjeet
21-02-2017 00:00

It worked for me kudos!

Write a comment ...
Post comment
Cancel
profile Ranjeet 22nd June 2016
HI Wizer, You need to run the above permission on root folder of Magento by command line.
Write a comment ...
Post comment
Cancel
profile Wizer 16th June 2016

could u tell me which folder i place these code to provide permission

Write a comment ...
Post comment
Cancel
profile LetsknowiT 17th February 2016
Hi Ranjeet, Thanks for your suggestion, we have updated the code accordingly.
Write a comment ...
Post comment
Cancel
profile Ranjeet 4th November 2015
Getting Error find: missing argument to `-exec' You need to put \ mark before semicolon e.g find . -type f -exec chmod 644 {} \;
Write a comment ...
Post comment
Cancel

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site