环境说明:
linux:centos7.3
apache: Apache/2.4.6 (CentOS)
php :PHP 7.3.3
一、下载安装依赖包
1.下载安装: rpm -Uvhhttps://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvhhttps://mirror.webtatic.com/yum/el7/webtatic-release.rpm
2.mod_php71w安装:yum install mod_php71w
安装第二步的过程中出现了

解决方法:rm -f /var/run/yum.pid
上述两步都操作成功后可以看到:/etc/httpd/conf.modules.d路径下会多出一个10-php.conf文件
二、配置apache的httpd.conf文件


配置完后需要重启apache:systemctl restart httpd.service
网友评论