Home  >  Article  >  Operation and Maintenance  >  How to configure php module in apache

How to configure php module in apache

(*-*)浩
(*-*)浩Original
2019-10-29 10:45:025972browse

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

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!

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