Last active
March 26, 2019 01:25
-
-
Save edurodriguesdias/d27cd837ab8516593a24885e71811fca to your computer and use it in GitHub Desktop.
Permissions for magento 2 project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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