Install Apache + PHP and windowapache in Windows
The local system for windows 10, Apache select httpd-2.4.25-x64-vc14-r1, PHP select php7.1 _ x64 thread security edition.
1. install Apache
2. install PHP
Modify the apache configuration file httpd. conf and load the PHP module in the appropriate location
//php5.6LoadModule php5_module C:/server/php56/php5apache2_4.dllPHPIniDir "C:/server/php56"//php7.1LoadModule php7_module C:/server/php71/php7apache2_4.dllPHPIniDir "C:/server/php71"
Modify httpd. conf and add the code at the appropriate location.
AddType application/x-httpd-php .phpAddType application/x-httpd-php .htmlAddType application/x-httpd-php .htmAddType application/x-httpd-php .shtml
Modify httpd. conf-> DirectoryIndex index.html index.shtml index.htm index. php
Copy and rename php. ini, modify the time zone PRC, and enable some common extensions.
Add the php installation directory and the php/ext directory to the path environment variable. Otherwise, the PHP Command Line tool cannot be used and the curl module fails to be loaded.
- Restart apache
httpd -k restart
3. Configure Apache3.1 to add a VM
- Modify the http. conf file and add the code in the last line:
Include conf/vhosts/*.conf