Skip to content

Instantly share code, notes, and snippets.

@edurodriguesdias
Last active March 26, 2019 01:25
Show Gist options
  • Save edurodriguesdias/d27cd837ab8516593a24885e71811fca to your computer and use it in GitHub Desktop.
Save edurodriguesdias/d27cd837ab8516593a24885e71811fca to your computer and use it in GitHub Desktop.
Permissions for magento 2 project
find . -type f -exec chmod 664 {} \;
find . -type d -exec chmod 775 {} \;
find var pub/static pub/media app/etc -type f -exec chmod g+w {} \;
find var pub/static pub/media app/etc -type d -exec chmod g+ws {} \;
chmod u+x bin/magento
/*
*cd /var/www/html/magento2 && sudo find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + && sudo *find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + && sudo chmod *u+x bin/magento
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment