I have installed RHSCL 2 using the following url:
using the RedHat subscription manager.
I then ran
yum remove php* followed by
yum install rh-php56
Everything went smoothly except now PHP is not found anywhere. I then ran
find / -name php and found
rh-php56 in the following directories:
/var/opt/rh/rh-php56/lib/php /opt/rh/rh-php56/register.content/var/opt/rh/rh-php56/lib/php /opt/rh/rh-php56/root/usr/bin/php /opt/rh/rh-php56/root/usr/lib64/php /opt/rh/rh-php56/root/usr/share/php
What is the best way to get these binaries into
/usr/bin or any other directory that is usually globally available for all users?
Did I miss a step when installing the packages which is why it is not available globally? Or is this just what happens when using RHSCLs?
I have tested the binaries in those folders and they work when I run
php -v so it is working fine.
My first thought is to just
/usr/bin but maybe there is an official way to do what I am asking?
Cannot comment, no rep... from chapter 3 of the link I posted, it says that software collection packages must be run like so:
scl enable rh-php56 'php -v'
Which does work... however how do I get it to run for all users like
$ php -v with no additional commands. I need the php binaries globally available so webservers can use it and ssh users with normal shells.