Magento root@localhost permission denied

If you found error while firing magento 2 commands then it may be problem due to you don’t have execute permission for binaries.

To fix it please do following

  1. cd to your magento root directory
  2. Fire command  chmod u+x bin/magento
  3. if above command not working then fire with admin account sudo chmod u+x bin/magento
  4. Now check commands it should start working.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.