Skip to content

Instantly share code, notes, and snippets.

@mazenelmasry
mazenelmasry / mage2_foler_file_permissions.md
Created March 9, 2022 23:44 — forked from evgv/mage2_foler_file_permissions.md
Magento 2 folder/file permissions

Magento 2 folder/file permissions

  • The owner of the Magento file system: Must have full control (read/write/execute) of all files and directories.
  • Must not be the web server user; it should be a different user.
  • The web server user must have write access to the following files and directories: var app/etc pub
  • In addition, the web server's group must own the Magento file system so that the Magento user (who is in the group) can share access to files with the web server user. (This includes files created by the Magento Admin or other web-based utilities.)
We recommend setting the permissions as follows:
All directories have 770 permissions.