0

When I run composer I get this

bash: /opt/cpanel/composer/bin/composer: No such file or directory

I'm trying to find where my bash profile (the file that contains my PATH is. I'm on Centos 6. I run: nano /root/.bashrc and there's no entry in there I run /etc/bashrc same no entry. I've checked online and can't find any answer pointing me to where it would be.

Per comments I've tried: /etc/profile and $HOME/.profile I need to remove that composer path, wherever that file is.

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255
FabricioG
  • 150

1 Answers1

1

Per Saswati in comments. I ran:

echo exit | strace bash -li |& less | grep '^open'

Here I was able to see that cpanel was generating the export here:

open("/etc/profile.d/cpanel-php-composer.sh", O_RDONLY) = 3

I then uncommented it from the above.

FabricioG
  • 150