Thursday, 29 June 2017

Magento2


Command Magento2 Shell

sudo chmod -R 777 pub/ var/ && bin/magento cache:clean && bin/magento setup:upgrade && bin/magento setup:di:compile


Cache namespace issue

sudo rm -rf  var/cache/* var/page_cache/* var/view_preprocessed/* var/composer_home/cache/*  generated/* && sudo chmod 777 var -R && sudo chmod 777 pub -R  && sudo chmod 777 generated -R && sudo php bin/magento setup:static-content:deploy -f && sudo chmod 777 var -R && sudo chmod 777 pub -R && sudo chmod 777 generated -R

Correct permission for folders and files

sudo find . -type f -exec chmod u+x {} \; && sudo find . -type d -exec chmod 755 {} \; && sudo chmod u+x bin/magento

Flush Cache
sudo bin/magento cache:flush

Get all command
sudo bin/magento

Adding log to file
sudo bin/magento --lock-env config:set dev/debug/debug_logging 1 && php bin/magento cache:flush

Disable log to file
sudo bin/magento config:set dev/debug/debug_logging 0 && php bin/magento cache:flush



chown -R www-data .


No comments :

Post a Comment