Skip to main content

CWP: How to install composer.phar or Could not open input file: composer.phar (solved)

Go to your Roundcube Directory
# cd /usr/local/cwpsrv/var/services/roundcube
# php composer.phar install
Could not open input file: composer.phar

# composer --version
-bash: composer: command not found

# curl -sS https://getcomposer.org/installer | php
# php composer.phar install

# curl -sS https://getcomposer.org/installer | php
# mv composer.phar /usr/local/bin/composer.phar

# alias composer='/usr/local/bin/composer.phar'
# composer --version
 
This post is based on this article.
Link 1
Link 2

Comments