xxxxxxxxxx
php7.3 /usr/local/bin/composer install
xxxxxxxxxx
#/usr/bin/php7.1 /usr/local/bin/composer update
#or edit your composer.json file and specify the version you want
"config": {
"platform": {
"php": "7.1.3"
}
}
xxxxxxxxxx
You can run the command the other way as described below if you want to use another PHP version, e.g. instead of composer install-
/opt/alt/php81/usr/bin/php /opt/cpanel/composer/bin/composer install