I'm encountering an issue where Composer is using PHP instead of LSAPI (lsphp) for PHP operations on my server. As OpenLiteSpeed is configured to use LSAPI for better performance and compatibility, I would like to ensure that Composer utilizes LSAPI as well.
Could you please provide guidance on how to configure Composer to use LSAPI or verify if there are any settings I need to adjust?
sudo ln -s /usr/local/lsws/lsphp83/bin/lsphp /usr/bin/php
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
What I got
Usage: php
php -[b|c|n|h|i|q|s|v|?] [<file>] [args...]
Run in LSAPI mode, only '-b', '-s' and '-c' are effective
Run in Command Line Interpreter mode when parameters are specified
-b <addressort>|<port> Bind Path for external LSAPI Server mode
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-h This help
-i PHP information
-l Syntax check
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-? This help
args... Arguments passed to script.
Could you please provide guidance on how to configure Composer to use LSAPI or verify if there are any settings I need to adjust?
sudo ln -s /usr/local/lsws/lsphp83/bin/lsphp /usr/bin/php
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
What I got
Usage: php
php -[b|c|n|h|i|q|s|v|?] [<file>] [args...]
Run in LSAPI mode, only '-b', '-s' and '-c' are effective
Run in Command Line Interpreter mode when parameters are specified
-b <addressort>|<port> Bind Path for external LSAPI Server mode
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-h This help
-i PHP information
-l Syntax check
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-? This help
args... Arguments passed to script.