What should I do if apache2 does not parse php?

王林
Release: 2023-03-04 13:28:01
Original
2321 people have browsed it

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

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!

Related labels:
php
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