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

What should I do if apache does not parse php7?

藏色散人
Release: 2021-06-02 15:11:26
Original
4277 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template