I have installed Composer Globally as this docs shows and it works for root user on my server CentOS 6.6 but as a normal user lets said webvm user it doesn't saying that composer is not found (see below):
[webvm@webvm ~]$ sudo composer [sudo] password for webvm: sudo: composer: command not found Do I need to setup something else in order to get composer working from a non root user? webvm is in sudoers file so I not know what I'm missing here, any advice?
sudo composershould not be run in the normal course of development or deployment. The unprivileged application/webserver user should be using composer WITHOUT sudo. The only time I'd even considersudo composerwould be with theself-updatecommand, neverinstallorupdate.