How to configure php module in apache

(*-*)浩
Release: 2019-10-29 10:45:02
Original
5978 people have browsed it

How to configure php module in apache

# Configuration Step is as follows

This Actually configure the PHP module as long as a file in PHP php5apache __. DLL (Recommended Learning: Apache)

1. First copy php to the folder where apache is located

2. Open the apache configuration file: apachea installation location/conf/httpd.cof

Then write FileMatch so that the module can find the suffix with php to process

Then that’s it

In fact, there is a more flexible writing method in the second step that can handle more suffixes

Add a command to detect the configuration syntax of apach:

The command location:

apache installation location/bin/httpd.exe

Command usage method:

httpd.exe  -t
Copy after login

Command result:

If the configuration file httpd.conf has no syntax error, it will return: syntax OK

The above is the detailed content of How to configure php module in apache. 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