Magento 2 File Permission

[Solved] Magento 2 File Permission | Php - Code Explorer | yomemimo.com
Question : magento 2 file permission

Answered by : depressed-deer-rot0fsxcjuym

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 : https://devdocs.magento.com/guides/v2.4/install-gde/composer.html | Last Update : Wed, 05 May 21

Question : magento 2 file permissions

Answered by : amused-aardvark-iahqxoqygt1z

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 {} \;

Source : | Last Update : Sat, 31 Oct 20

Answers related to magento 2 file permission

Code Explorer Popular Question For Php