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 :: uninstall anydesk ubuntu 
Shell :: install iptables centos 7 
Shell :: laravel rollback last migration 
Shell :: powershell regex ip address 
Shell :: telnet install on mac 
Shell :: count number of files linux command 
Shell :: Create file if not exist bash 
Shell :: uninstall foxit reader ubuntu 18.04 
Shell :: get mac temperature 
Shell :: adb port reverse 
Shell :: update vs code in ubuntu 
Shell :: git unset alias 
Shell :: remove git from project 
Shell :: certbot remove domain 
Shell :: check active number of ssh connections 
Shell :: How do I check my WSL version? 
Shell :: install php 7.4 chocolatey 
Shell :: nodemon command not found linux 
Shell :: adonis install 
Shell :: install moviepy 
Shell :: get last element in an array bash 
Shell :: install firebase-tools globally yarn 
Shell :: find out which procses is using port linux 
Shell :: windows stop process running on port 8080 
Shell :: angular install 
Shell :: check application using port linux 
Shell :: install sshpass mac 
Shell :: davinci resolve ubuntu intel gpu processing mode empty 
Shell :: bash get width of terminal 
Shell :: git change https to ssh 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =