Shell/Bash: magento 2 file permissions Example
Shell/Bash Example: This is the "magento 2 file permissions" Example. compiled from many sources on the internet by SimpleTutorials.org
magento 2 file permissions
find . -type f -exec chmod 664 {} \; find . -type d -exec chmod 775 {} \; find var pub/static pub/media generated/ app/etc -type f -exec chmod g+w {} \; find var pub/static pub/media generated/ app/etc -type d -exec chmod g+ws {} \;
magento 2 file permission
cd /var/www/html/find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + chown -R :www-data . # Ubuntu chmod u+x bin/magento php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento indexer:reindex php bin/magento c:f
* Summary: This "magento 2 file permissions" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!