CentOS7yum How to install PHP7.2
- 2020-10-31 22:04:49
- OfStack
1. If it has been installed before, let's uninstall it first
yum -y remove php*
2. Since php7.x does not exist for linux's yum source, we need to change yum source
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
3. yum Install php72w and various extensions, just choose what you need
yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml