I installed composer inside my server. Here is what my files look like via ssh
When i type composer from here it is working, but when i navigate inside public_html folder and type composer it is responding as
-bash: composer: command not found
You can use the absolute path. It looks like
composer is your home directory, so this should work:
Another solution is to add the directory to your
However, you not install software in your home directory.
Install composer at a better location,
recommended by your operating system.
Then, that directory is likely to be already on
so simply running
composer will work everywhere.