[LINUX] After installing php7.2, the php command does not work

Install php7.2

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

After installing php7.2, the php command does not work
gqlgen command does not work with go gqlgen
Command when ACPI shutdown does not work in VirtualBox
[systemd] How to deal with the problem that fancontrol does not work after suspending
LocateCenterOnScreen does not work on PyAutoGui
The story of the release work of the application that Google does not tell
Calling time.sleep () after the print function with the argument end does not print
When the program pip installed on Mac / Marvericks does not work
[VScode] autopep8 format does not work [Python]
Virtualenv does not work on Python3.5 (Windows)
Check items when the imported python module does not work as expected
Python> Python does not include the last offset
Example of what to do when the sample script does not work (OpenCV-Python)
I managed to solve the situation where Python does not work on Mac
Solution to the problem that build does not end when installing OpenCV (PEP517)
GAE forbidden: The caller does not have permission
Jinja2 2.9.6 does not work on Lambda Python 3 series
Create a command to get the work log
When wildcard specification does not work with pylint
[Pyhton] I want to solve the problem that tkinter does not work on MacOS11
After installing Linux
Note ((1) csv.reader AttributeError, (2) get_sheet_by_name DeprecationWarning, (3) .delete_cols does not work)
Right click event acquisition does not work with opencv-python
Solution when Linux does not recognize the built-in camera
Check when the version does not switch with pyenv
The story that yapf did not work in vscode
A story that pyenv is stuck because the python execution command PATH does not pass
Correspondence when an alert is issued by the workon command after installing virtualenv (MacOS10.10 + Python3.4)