Horizon commands missing if specifying cli php version with cpanel multiphp
Hi everyone
I have an interesting situation. The server where my app (laravel 5.5) is installed has other sites as well, and is running php 7.0 by default in the command line.
I've configured my site with multiphpmanager to use 7.1 and that's all fine, but only for web requests.
From looking around, I've found that I can call /usr/bin/php -ea_php 71 to specify the version of php to run the command as.
Now, if I just run php artisan list, I see a list of all of the horizon commands, but I can not run php artisan horizon, as it runs it with php 7.0 and throws an exception because of the 7.1 requirement for horizon.
I then attempt it with /usr/bin/php -ea_php 71 ./artisan horizon but then the command does not exist, and if I do artisan list with the php 71 flag, the only command listed under horizon is the horizon:snapshot one.
For some reason the other commands are just not listed at all when specifying the php version, and for the life of me I can not figure out why.
For what it's worth, I had to pull down a composer.phar file and run that as php 7.1 as well for the autoload to work, otherwise it complains because it doesn't recognise the ?? syntax.
Any suggestions would be appreciated, thanks :)
Please or to participate in this conversation.