apache不解析php
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视频教程
以上就是apache不解析php的详细内容,更多请关注其它相关文章!