I typed the following command.
# sudo wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# sudo rpm -ivh epel-release-latest-7.noarch.rpm
# sudo yum-config-manager --enable remi-php72
# sudo yum install -y php72 php72-php
Well, do you want to check if you have installed it properly?
# php -v
Check php version
-bash: php: command not found
***Hmm? ?? *** ***
I can't find the php command. .. ..
# php72 -v
This will work.
However, if the command is not php72 but php, it will be quite inconvenient. .. ..
scl enable php72 bash
By hitting this command, you can use the php command temporarily. Once you log out, the settings disappear.
Recommended Posts