Home  >  Article  >  Operation and Maintenance  >  How to solve the problem that Apache cannot parse PHP?

How to solve the problem that Apache cannot parse PHP?

青灯夜游
青灯夜游Original
2019-10-15 17:18:574288browse

Apache is the world's number one web server software. It can run on almost all widely used computer platforms and is one of the most popular web server-side software due to its cross-platform and security features.

How to solve the problem that Apache cannot parse PHP?

#How to solve 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

Restart apache.

The above is the detailed content of How to solve the problem that Apache cannot 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