1.安装
yum install httpd
2.启动apache
systemctl start httpd
3.查看apache服务器状态
systemctl status httpd
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
2.查看php7.0扩展
yum search php70w
3..安装通用扩展(安装扩展yum install 扩展名)
yum install php70w php70w-fpm php70w-cli php70w-common php70w-devel php70w-gd php70w-pdo php70w-mysql php70w-mbstring php70w-bcmath
4.查看php版本
php -v