1. Go to Apache HTTP Server Download website: http://httpd.apache.org/download.cgi
2. Select a server version, here Apache HTTP server 2.4.25 (httpd): 2.4.25 is the latest available version
3. Click Files for Microsoft Windows
4. In downloading Apache for Windows This column, Apache explained that does not give the running version, only gives the source code, needs to compile itself. But here are a few links, several sites to help us compile a binary package. Pick one and go in.
5. Download the version of the operating system that corresponds to your computer, such as 64-bit download Httpd-2.4.25-win64-vc14.zip
6. Unzip the package to any directory, open readme_first.html, read the content (you will install it after reading)
7. English too long don't want to see, then continue to read my nonsense: Open cmd (Win key +r), CD into the Extract directory \apace24\bin record (such as E:\Apace24\bin), enter "httpd-k install", If there is no error, the installation succeeds.
8. Of course it is impossible not to error, enter the \apache24\conf directory open httpd.conf, will
Define srvroot "E:\ApacheService\Apache24"
ServerRoot "${srvroot}"
Change the red character to the appropriate location in your computer.
9. Install "httpd-k Install" again, should not error.
10. Enter "httpd-k start" in cmd, andif there is no error, you can enter http://127.0.0.1 in the browser, view, if there is no error, the installation is successful.
11. Of course, the error indicates that the port is incorrect. Open httpd.conf again and modify the port
#Listen 12.34.56.78:80
Listen 80
For Listen 8088 (or other)
enter "httpd-k restart again" to run the server correctly without an error.
12. At this point, enter the server home page at: http://127.0.0.1:8088
13. The Web page is placed in the \apache24\htdocs directory, can be accessed through the Web site, such as:http://127.0.0.1:8088/index.html
Apache HTTP Server installation