I hope that subject line makes sense...
tl;dr: How can I use a software collections version of PHP (e.g., PHP 5.5) to run a script at the command line?
Background:
I have Owncloud 8.0.4 installed on my SME 9.0 server, and I'm using software collections to enable PHP 5.5 on the ibay that houses owncloud. Owncloud 8.1 has been released, and upgrading to 8.1 is going to require that I install the upgrade from the shell.
As part of the upgrade, there are a couple of PHP migration scripts that need to be run. They can be run from the owncloud web interface, but they will time out if there's too much data to process. So, the owncloud documentation recommends running them from the shell instead. But when I run "php somefile.php", the system PHP version (5.3.3) is run, not the version specified for the ibay.