Solution to the problem that apache cannot parse php:
1. Uninstall the mod_php module and reinstall it
[root@vm-centos conf.d]# yum remove mod_php [root@vm-centos conf.d]# yum install mod_php
2. Check the mod_php module again
[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]#
Recommended tutorial: PHP video tutorial
The above is the detailed content of apache not parsing php. For more information, please follow other related articles on the PHP Chinese website!