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 :: yarn install ignore node version 
Shell :: upgrade chocolatey 
Shell :: laravel migrate rollback specific file 
Shell :: ubuntu du sort by dir size 
Shell :: install telnet mac 
Shell :: count files in directory linux 
Shell :: bash script create file if not exist 
Shell :: Failed at the node-sass@4.10.0 postinstall script. 
Shell :: remove app ubuntu terminal 
Shell :: adb reverse tcp 8081 
Shell :: Error starting userland proxy: listen tcp4 0.0.0.0:8080: bind: address already in use 
Shell :: how to add changes to the previous commit in git 
Shell :: remove git from folder 
Shell :: how to check ssd health linux manjaro 
Shell :: chocolatey list installed 
Shell :: wsl ubuntu reboot 
Shell :: ubuntu install clamav 
Shell :: how to install snap store in elementary os 
Shell :: ubuntu command to list largest files 
Shell :: Failed to start redis-server.service: Unit redis-server.service is masked. 
Shell :: remove mongodb completely ubuntu 
Shell :: how to check bluetooth driver version in ubuntu 
Shell :: how to install git on linux 
Shell :: uninstall node from linux debian 
Shell :: angular cli 
Shell :: How to check if port is in use in 
Shell :: restart nginx server 
Shell :: ssh permissions too open 
Shell :: git overwrite urlk 
Shell :: uninstall vscode linux 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =