Windows install Apache2.4

1. On the Apache official website, for Apache2.4, there is no installation package for Windows, but the following are provided

    

URL for download. The last three are the integrated installation packages of PHP, MySQL, and Apache, but if we only need Apache2.4, it is a bit redundant.

The first two are pure Apache2.4, and no other environment is integrated. We take the first one as an example, open  the ApacheHaus website, and choose a 32-bit or 64-bit binary package for our own system.

 

2. After downloading, unzip the httpd-2.4.25-x86-vc14-r1.zip file to get the Apache24 directory.

 

3. The Windows version of Apache24 depends on Visual Studio 2015 (VC14). It can be downloaded from the official gateway of WIndws. The download address is as follows: https://www.microsoft.com/zh-CN/download/details.aspx?id =48145 (Remember to select for 32-bit or 64-bit.) 

 

4. After installing the VC++ runtime library, open CMD, enter the Apache24 directory, and execute:

      httpd.exe -k install , you can install Apache as a Windows service,

 

5. Modify the httpd.conf configuration file of Apache, and modify the ServerRoot to the correct directory. After modifying the configuration file, you can use httpd.exe -t for detection.

 

   

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326449311&siteId=291194637