:
Apache 2.4.16 Win64 bit:
Vc14:http://www.apachelounge.com/download/vc14/binaries/httpd-2.4.16-win64-vc14.zip
Vc11:http://www.apachelounge.com/download/vc11/binaries/httpd-2.4.16-win64-vc11.zip
Apache 2.4.16 Win32 bit:
Vc14:http://www.apachelounge.com/download/vc14/binaries/httpd-2.4.16-win32-vc14.zip
Vc11:http://www.apachelounge.com/download/vc11/binaries/httpd-2.4.16-win32-vc11.zip
NET disk:
Normal Download: http://pan.baidu.com/s/1jUZPs
Encrypted Link: http://pan.baidu.com/s/1jGKS2l4 Password: bg1e
The user chooses the version according to his or her operating system:
The download of that version of Apache is fastidious:
1, your machine is 64-bit, you should download the Win64 logo, or download the Win32 logo
2. Your operating system is
XP, 2003 should download the VC9 logo
Win7, win8 should download the VC11 logo
WIN10 should be downloaded with the VC14 logo
Can be lowered, but not elevated
This is the version I downloaded (my operating system is WINDOW7 64-bit)
Unzip after download
Double-click Open Apache24 folder
Configure Environment Variables First
Appended to the environment variable path; E:\SoftWare\Apache Server for Win\apache24\bin (this is my own decompression directory, that is, the path to the bin directory after you unzipped)
Open the Conf folder
Open the httpd.conf in Notepad
1. Modify the root path of the ServerRoot Apache:
Ctrl+f find "serverroot" C:/apache24 "" changed to-->"serverroot" E:/software/apache Server for Win/apache24 ""
2. Modify the ServerName your host name:
Ctrl+f find "#ServerName www.example.com:80" remove the previous #, which is required when launching Apache from the command line.
3. Modify DocumentRoot Apache access to the Home folder directory, which is the location of PHP, HTML code files. Apache default path is under Htdocs (D:apacheapache24htdocs), there will be a simple entry file index.html. This path can be modified on its own,
We can find this folder in the extracted directory, I suggest to change to this directory
4. Modify the Portal file configuration: DirectoryIndex in general, we use index.php, index.html, and index.htm as portals for Web projects. Apache Default portal only index.html need to add the other two support, of course, the settings of this portal file can be increased or decreased according to their own needs, if the requirements are more stringent can only write a index.php, so that the entry in the project can only be index.php
5. Set the Serverscript directory:
scriptalias/cgi-bin/"c:/apache24/cgi-bin/" to "= scriptalias/cgi-bin/" E:/software/apache Server for win/Apache24/ Cgi-bin "
Watch the folder under the extracted directory
Add a little
This place is better off, this is primarily access to different Web pages
Save exit
When you save the exit, if there is an error about the coding problem, save as to change the encoding format (can be changed to utf-8 this is generally supported by the type character)
Launch Apache
Switch the path to the bin directory
Load
Add Server
Where "MyServer" is my own name of the server, you can modify the name according to the actual needs
Start the server
If you want to uninstall this service, you can stop and then uninstall
Finally test whether Apache installed successfully, in the IE Address bar input: http://localhost:8080/(port is 8080) if the port number is 80 do not add port number, directly in the address bar input http://localhost/If the page appears "It Works "means that your Apache installation is successful.
Apache Server for Win decompression version installation and configuration