Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

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

PREVIOUS NEXT
Code Example
Shell :: flutter add windows support to existing app 
Shell :: apply last stash git 
Shell :: linux ip forwarding 
Shell :: ssh-add could not open a connection to your authentication agent centos 
Shell :: how to install asciiquarium on ubuntu 
Shell :: grub customizer ubuntu 
Shell :: alamofire pod install 
Shell :: open firewall port ubuntu 16.04 
Shell :: conda install scipy 
Shell :: hard reset git branch 
Shell :: powershell scoop 
Shell :: please provide a valid cache path error 
Shell :: find cudnn version 
Shell :: bypass login jupyter ubuntu 
Shell :: install gcc in ubuntu 
Shell :: bash remove extension 
Shell :: npm does not support Node.js v10.24.0 
Shell :: install vm guest additions ubuntu 
Shell :: touchpad scroll not working lenovo ubuntu 20.04 
Shell :: delete local comits 
Shell :: bash if is number 
Shell :: laravel routes not working on production 
Shell :: how to get hostname on linux 
Shell :: install brave in ubuntu 
Shell :: git delete all branches except master 
Shell :: sh wait 10 seconds 
Shell :: setup user in git 
Shell :: uninstall vmware workstation 
Shell :: pypdf2 
Shell :: set git pull rebase default 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =