This typically happens when the installer can't find the path of your PHP. One way around this would be to find the binary for the PHP serving your application, and using the APPD_PHP_PATH environment variable on the command line as you run the rpm installer:
APPD_PHP_PATH=/opt/rh/myphp/bin rpm -i ...
Could you let us know if that resolves the error?
Thanks and regards,
... View more