Today installed Apache server, here is my summary of the method:
First, prepare the software
1.64-bit Apache version Portal: http://www.apachelounge.com/download/
2.VC11 Runtime Library
After the download is complete, my decompression directory is J:\apache\:
Second, modify the file
Open the httpd.conf file in the J:\apache\Apache24\conf directory and make the following changes:
ServerRoot (Apache directory) instead of J:\apache\Apache24
ServerName (server name) Remove #, change to 127.0.0.1
DocumentRoot (Modify site root address) Set yourself, generally set to J:\apache\Apache24\htdocs
<directory "Site root address" > same as Previous address
Scriptalias to/cgi-bin/"Apache directory +/cgi-bin/"
<directory "Apache directory +/cgi-bin/" > (different from the directory above)
Three, installation
Install/uninstall command (run cmd as Administrator)
Install command: "J:\apache\Apache24\bin\httpd.exe"-K install-n Apache
Uninstall command: "J:\apache\Apache24\bin\httpd.exe"-K uninstall-n Apache
(Every time you change a. conf file, uninstall and reinstall)
After you finish executing the command, you may experience a problem like this:
This is because the 80 port has been used, so you have to change the port, or in the httpd.conf file found listen 80 this line (about 58 lines), 80 to 8080 on the line, and then uninstall, install.
Until such a prompt appears:
Four, the test is successful
Find a browser, and then enter the URL of the place input http://127.0.0.1:8080/index.html, the following interface is successful
Note: If you set the root of the URL mentioned above as J:\apache\Apache24\htdocs, because this folder will bring a index.html file
If there are any other problems in the installation process, you can discuss them below.
How to install Apache Server on WIN10 (64-bit system)