windows run under Apache2.4 configuration parsing of php

1, the installation php7

2, installation apache2.4

3, find the httpd.conf file apache2.4, apache configured, the list of services the system and then through httpd.exe -k install -n "servicename" will be added in apache;

4, start apache2.4 in the list of services, or in the cmd "servicename" Start by net start apache

5, configure apache parsing php, open the httpd.conf file, add the following code in the final document, the specific content needs according to their own environment configuration

# php7 support
LoadModule php7_module "E:/soft/php-7.3.9/php7apache2_4.dll"
AddType application/x-httpd-php .php .html .htm
# configure thepath to php.ini
PHPIniDir "E:/soft/php-7.3.9"

 

Guess you like

Origin www.cnblogs.com/janken/p/11525837.html