Share this post:
If you have php7.3 installed, you will also have the matching php-cli. To use it, see https://www.softwarecollections.org/en/scls/jstanek/rh-php73/. I think the link is a bit confusing.
just opens a bash prompt with php7.3 enabled. If you have an app you've written in PHP 7.3 you can run it with:
scl enable rh-php73 bash
but I am not sure if ClearOS have hijacked it with their /usr/clearos/bin/php so you may need a .phpenv file in your path. Check the script. Or you can expressly invoke it by giving the path to the PHP executable /opt/rh/rh-php73/root/usr/bin/php or you can put a shebang at the top of your executable:
scl enable rh-php73 your_app