apache无法解析php的解决办法:
1、卸载mod_php模块并重新安装
[root@vm-centos conf.d]# yum remove mod_php [root@vm-centos conf.d]# yum install mod_php
2、再次检查mod_php模块
[root@vm-centos conf.d]# ls -l /etc/httpd/modules/*php* -rwxr-xr-x. 1 root root 5124456 Oct 12 03:27 /etc/httpd/modules/libphp7.so -rwxr-xr-x. 1 root root 5313960 Oct 12 03:27 /etc/httpd/modules/libphp7-zts.so [root@vm-centos conf.d]#
推荐教程:PHP视频教程
Atas ialah kandungan terperinci apache不解析php. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!