Home>Article>Operation and Maintenance> apache cannot open php file

apache cannot open php file

王林
王林 Original
2019-10-17 10:43:56 3185browse

apache cannot open php file

Apache is only responsible for processing requests and returning responses. It does not have the function of parsing PHP itself.

Solution:

You need to install PHP, allow Apache to call PHP (install the PHP module), and write the configuration file.

When requesting a PHP file in this way, Apache recognizes that it is a PHP file, and then hands it to the PHP module for processing. After processing, Apache will generate a response from the PHP processed output information and return it to your browser.

Recommended tutorial:apache tutorial

The above is the detailed content of apache cannot open php file. 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
Previous article:apache not parsing php Next article:apache not parsing php