How to solve the problem that Apache cannot parse PHP?

青灯夜游
Release: 2019-10-19 16:09:48
Original
4261 people have browsed it

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

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!