sudo rm -rf pub/static/*
sudo php bin/magento setup:upgrade
I have set 777 permission to pub but still getting
[Exception] :
Missing write permissions to the following directories: '/var/www/magento2/pub/static'
Suggest some solution.
sudo rm -rf pub/static/*
sudo php bin/magento setup:upgrade
I have set 777 permission to pub but still getting
[Exception] :
Missing write permissions to the following directories: '/var/www/magento2/pub/static'
Suggest some solution.
Please check this link.
I hope this link helpful for your issue.
Missing write permissions in directory pub/static when run bin/magento setup:upgrade
You can check also below link.
Magento2 Missing write permissions to the following directories: 'site/public_html/pub/static'
I think, First you need create Static Content,
bin/magento setup:static-content:deploy
Then Run,
chmod -R 777 /var/www.html/
bin/magento setup:upgrade
This way worked for me,
Type sudo chmod 777 -R var pub command in terminal
then php bin/magento setup:upgrade
hope it will works