centos 环境下快速安装 apache + php 7.2!步骤如下:
一、安装 apache
yum install httpd
运行+开机自动运行
systemctl start httpd.service systemctl enable httpd.service
二、安装 php 7.2
如果之前已经安装我们先卸载一下
yum -y remove php*
php高版本的yum源地址
yum install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
安装php 7.2
yum install php72w
安装扩展,语法 yum install php72w-扩展名称,如:
yum install php72w-pdo_mysql
启动与重启
systemctl restart httpd.service