1, the installation
In fact, no installation, is to unpack it.
! ! ! (Path here to see their path after decompression)! ! !
The httpd-2.4.39-win64-VC15.zip (Apache Software) unzip to C: \ Apache24. C root directory, why should httpd extract to the C: drive it? It httpd.conf configuration file to the root path is set to C: \ Apache24, so you can save time, without changes to the configuration file.
These three documents is Apache extract from the
2, configure httpd
Open the path C with notepad ++: \ Apache24 \ conf in the httpd.conf file, modify the configuration! ! ! There is a need to modify six places! ! !
First, the need to change the port if the port line 59, 60 put on the line to get rid of
The second copy of the 227 line, paste it into the 228 line, uncommented! And to address before the port into the public network ip (if not fill local 127.0.0.1, localhost)
Third at 235,236 lines of code to copy and paste it into line in the 237, 238 and the 235, 236 lines of code commented out, the 237 and 238 lines of code word into the back of all, granted
The fourth step was added last 287 lines of code in index.php
In the fifth step 512 rows #Include conf / extra / httpd-default.conf Note that the line of code "#" cancel
The sixth step to copy this code to around 540 lines of code, and the path of the situation into their own path
# php7 support LoadModule php7_module C:/Apps/php-7.3.4-Win32-VC15-x64/php7apache2_4.dll AddType application/x-httpd-php .php .html .htm #configure the path to php.ini PHPIniDir C:/Apps/php-7.3.4-Win32-VC15-x64
!!!到此 Apache 安装配置完成!!!