I'm reading the following tutorial on installing PHP 7.2 on CentOS 7 https://www.cyberciti.biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/
It basically says;
sudo yum install epel-release
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum install yum-utils
sudo yum-config-manager --enable remi-php72
sudo yum update
sudo yum install php72
Then it says to verify the installation using the standard
php --version
Which returns the following;
-bash: php: command not found
BUT, if i type the following;
php72 --version
It works just fine and returns the version.
The problem is that everything relies on the command php and not php72
Any idea on what i should be doing?
Best Answer
Please read the Wizard instructions
If you need a single version, using remi-php72 repository, and the php-* packages, the command will be php.
If you need multiples versions, the php72-php-* packages are available, and the command is php72 or
So, according to your question, you have enable the remi-php72 repository, but installed the php72* packages from the remi-safe repository...