Home >Backend Development >PHP Problem >What should I do if apache2 does not parse php?

What should I do if apache2 does not parse php?

王林
王林Original
2020-08-14 15:31:412353browse

The solution for apache2 not parsing php: first open the httpd.conf configuration file; then add the code [LoadModule php7_module modules/libphp7.so].

What should I do if apache2 does not parse php?

First open the httpd.conf configuration file;

(Recommended tutorial: php graphic tutorial)

Then add the following code:

LoadModule php7_module modules/libphp7.so
AddType application/x-httpd-php .php
DirectoryIndex index.php index.htm index.html

The above is the detailed content of What should I do if apache2 does not parse 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