So we ran into a little bit of an issue today when upgrading Laravel from 5.6 -> 6.0. We updated the version of PHP using the MultiPHP Manager section in Cpanel, however when we then SSH’d into the server to pull in the updated Laravel code and run composer install we ran into the issue of composer using the system version of PHP. The full process we went through is below:
Update the version of PHP on MultiPHP manager page:
composer install
We instead ran:
~/bin/composer install
Composer now uses the version of PHP defined in the shim script, which in our case is PHP 7.3 and we are back to all green happy lines 🙂