I ran the following commands twice to ensure it's installed:
yum install php72 php72-cli returns
Package php72-1.0-1.el7.remi.x86_64 already installed and latest version
now running php -v
returns
-bash: php: command not found
Note: This is on Vagrant running centos/7 box.
Any ideas?
/opt
and therefore binaries do not (automatically) appear on PATH. Simply runyum whatprovides */php
or (more ugly but still my favorite)find / -name php 2>/dev/null
and check where thephp
binary really is and if you have that directory on your PATH.