Under Windows
First, download
1.1 filenames
httpd-2.4.16-x86-vc11.zip
1.1 Download
http://httpd.apache.org/download.cgi
Ten击 "Files for Microsoft Windows"
Click "ApacheHaus"
Select Apache 2.4.16 vc11 download
Second, the installation
2.1 Unzip
The compression httpd-2.4.16-x86-vc11.zip solution to D: \ under devsoftware \ httpd-2.4.16-x86-vc11 directory
2.2 apache install windows back into service
1. Open the Windows Administrator cmd, switch to the D: \ devsoftware \ httpd-2.4.16-x86-vc11 \ Apache24 \ bin directory
2. Perform httpd -k install
Third, start
3.1. Start with ApacheMonitor.exe
Directory: D: \ devsoftware \ httpd-2.4.16-x86-vc11 \ Apache24 \ bin \ ApacheMonitor.exe
Open the Start screen
3.2. Start with the command
1. Open the Windows Administrator cmd, switch to the D: \ devsoftware \ httpd-2.4.16-x86-vc11 \ Apache24 \ bin directory
2. Perform httpd.exe -w -n "Apache2.4" -k start
Fourth, start to see success
4.1 Check whether the service "Started"
4.2 browser, enter http: // localhost /
Five Common Mistakes
When 5.1 httpd -k install, suggesting "Access denied:. AH00369: Failed to open the Windows service manager"
Solution: "Run as administrator" cmd.
5.2 to ApacheMonitor.exe starts, prompting "The requested operation has failed!"
Solution:
1. Changing the command line to start, httpd.exe -w -n "Apache2.4" -k start, you can view the specific cause of the error
2. Modify httpd.conf
将 Define SRVROOT "/Apache24" 改为 Define SRVROOT "D:\devsoftware\httpd-2.4.16-x86-vc11\Apache24"
References:
How do Apache server from the Apache official website to download Windows: http: //jingyan.baidu.com/article/29697b912f6539ab20de3cf8.html