I have an issue while try to run commands bin/magento in terminal. Commands not working. No command run after bin directory. You can see the below screenshot about the error.

Basically yesterday I installed Mailchimp extension using SSH Putty (login as root user). Now I can't run commands in terminal.

enter image description here

Need help.

  • Try sudo magento c:f. – Rizwan Khan Jan 16 at 13:04
  • sudo magento cache:flush. not working, showing "sudo: effective uid is not 0, is /bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?" – Shoaib Saleem Jan 16 at 13:14

Go to public_html/bin and change permission to 775


Give permission to generated Directory

chmod 777 -R generated

GIve appropriate permission to generated directory.

  • 1
    Friends don't let friends 777. – kanenas May 13 at 8:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.