Folder permission in magento

Folder permission in magento:

Once we install the magento instance from our system, we have to set the proper folder permission for our package. This is best practice to use magento.
Some time will get confuse, what permission we want to give ? because lot of folders and files are available in magento. Which permission is best for the folder ?
Refer below folder and files permission , this may helpful for your work

Permission : 775

Set this 775 permission for all the directories and subdirectories except “app/etc” folder.

Permission : 644

Becuase all of our modules files are available in this folder only. Better give permission 644 permission for this folder. It will helpful for your security purpose of your modules.

Permission : 777

var folder
media folder
We have to read and write some files from these folder. So may this permission is fine. Otherwise we can give the read only permission based on the user.

 

———————————————————————————————————————————————————————————————-

Corner of Blog:

“A drop of water is life for a thirsty person”

———————————————————————————————————————————————————————————————-

Leave a Reply