Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

magento 2 file permission

cd /var/www/html/<magento install directory>
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
Source by devdocs.magento.com #
 
PREVIOUS NEXT
Tagged: #magento #file #permission
ADD COMMENT
Topic
Name
4+6 =