Trying to install composer

#1
Hi!

I've installed OpenLiteSpeed and LSPHP73 with appropriate packages for my application but I am trying to installer composer and had a few issues relating to not having direct access to the php CLI.

I have tried running /usr/local/lsws/lsphp73/bin/php under a php alias to shorten the directory and composer installs but when I try to actually run composer I get php missing in the env.

Is it better to rebuild PHP with the cli and lsphp flags? How can I get a standard php CLI to work?

EDIT: Ubuntu 18.04
 

Cold-Egg

Administrator
#2
Hi @jgorny ,

Try link the LSPHP73 binary to /usr/bin/php if it's not exist.
Code:
ln -s /usr/local/lsws/lsphp73/bin/php /usr/bin/php
Then run the php composer see if it works.

Best,
Eric
 
Top