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

What should I do if apache does not parse php7?

藏色散人
藏色散人 Original
2021-06-02 15:11:26 4015browse

The solution to Apache not parsing php7: first find and open the httpd.conf file; then add the code "LoadModule php7_module modules/libphp7.so".

What should I do if apache does not parse php7?

The operating environment of this article: Windows7 system, PHP7 version, DELL G3 computer

Solution to the problem that Apache cannot parse PHP

Edit the httpd.conf file

Add the following code

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

The first sentence will be automatically generated after installing php

Recommended learning: "PHP Video tutorial

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