Home  >  Article  >  Operation and Maintenance  >  apache not parsing php

apache not parsing php

王林
王林Original
2019-10-16 11:46:242814browse

apache not parsing php

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn