Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save davirs/06a1265544ad712b5e5a733558879078 to your computer and use it in GitHub Desktop.

Select an option

Save davirs/06a1265544ad712b5e5a733558879078 to your computer and use it in GitHub Desktop.
Magento 2 Reset Directories and Files Permissions
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 ./pub/media -type d -exec chmod 777 {} \;
find ./pub/static -type d -exec chmod 777 {} \;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml
chmod -R g+w *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment