Home  >  Article  >  Operation and Maintenance  >  What should I do if apache does not parse php?

What should I do if apache does not parse php?

王林
王林Original
2020-09-11 13:21:162828browse

The solution to Apache not parsing php: First use the editor to open the httpd.conf configuration file; then add the configuration [LoadModule php7_module modules/libphp7.so] to the file.

What should I do if apache does not parse php?

Solution:

(Video tutorial recommendation: php video tutorial)

Use first Open the httpd.conf configuration file in the editor;

and then add the following code to the configuration file.

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

Related recommendations: php training

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