Home >Operation and Maintenance >Apache >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!