sudo rm -rf pub/static/* sudo php bin/magento setup:upgrade
I have set 777 permission to pub but still getting
Missing write permissions to the following directories: '/var/www/magento2/pub/static'
Suggest some solution.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Please check this link.
I hope this link helpful for your issue.
You can check also below link.
I think, First you need create Static Content,
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