1

What should be file permissions in Magento 2 after deploying website to live and website is in production mode.

I have read many forums and found that the file permissions of folders generated,var and pub should be 777 but in Magento 2 documentations it is different.This create a little bit confusion so please let me know if anyone have idea about this.

When you are ready to deploy your site to production, you should remove write access from files in the following directories for improved security:

vendor
app/code
app/etc
lib
pub/static
Any other static resources
generated/code
generated/metadata
var/view_preprocessed

https://devdocs.magento.com/guides/v2.3/config-guide/prod/prod_file-sys-perms.html

Please share your ideas as we are getting issues related to owner permissions in my website?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.