This article details the process of installing Apache on a Windows platform and hopes to help friends who first installed Apache.
1. Software Preparation
We take the Apache2.2.21 version as an example
Apache Official Download Address: Httpd-2.2.21-win32-x86-no_ssl.msi
2. Start Installation
Double-click Httpd-2.2.21-win32-x86-no_ssl.msi to start the installation. The Install welcome interface appears.
Figure 1 Welcome interface
The direct point "Next" continues, the authorization agreement appears.
Figure 2 Authorization Agreement
Select "I accept the terms in the license Agreement" agree to authorize the agreement, then click "Next" to continue, the installation instructions appear.
Figure 3 Installation Instructions
Directly point to "next" next, appear fill in the information interface.
Figure 4 Fill in the information
"Network domain" fill in your network domain name, such as admin10000.com, if there is no network domain name, you can fill out casually.
"Server name" fills in your server name, such as Www.admin10000.com, which is the host name. If not, you can fill it out casually.
"Administrator ' s email address" to fill in the system administrator's contact email addresses, such as webmaster@admin10000.com. Contact e-mail addresses are available to visitors when the system fails.
Tip: Because we install Apache is mainly on the machine to do development, so the first 2 fill localhost can be. The above 3 information can be filled out arbitrarily, later can modify this information in the httpd.conf file.
There are two more options, the first is to install for all users of the system, use the default 80 port, and start automatically as a system service, and the other is to install only for the current user, using port 8080, to start manually. We selected the first "for all Users, on Port, as a service–recommended". Then click "Next" to continue.
Figure 5 Installation Type
The Select installation type interface appears, typical for the typical installation, custom installation for the user, we choose typical here, press "Next" to continue.
Figure 6 Changing the installation directory
Click "Change ..." To manually specify the installation directory. Here we have the Apache installed to "D:\Apache\", where you decide to install. It is recommended that you do not install the operating system on the disk (usually C disk), in case the operating system is broken, the restore operation also clears the Apache configuration file. After you specify a good installation directory, click "Next" to continue.
Figure 7 Preparing to install
Verify that the installation options are correct, and click "Install" to start the installation. If you think you need to check again, you can click Back to return to the check step at a time.
Figure 8 Installation Progress
The installation progress occurs, waits for a while, and then the following interface appears.
Figure 9 Installation End
After clicking Finish, an icon with a green flag appears in the bottom right corner of the status bar. Indicates that Apache has started normally.
At this time in the browser input http://localhost/or HTTP://127.0.0.1/can see the following interface.
Figure 10 Works fine
3. Frequently Asked Questions
After the installation is complete, a DOS window is displayed, prompting that "usually only one use per socket address (Protocol/network address/port) is allowed".
This indicates that the default 80 port of Apache is occupied by other Web servers. An icon with a red flag appears in the bottom right corner of the status bar, indicating that the Apache service did not start.
Most likely you have IIS installed and enabled, and IIS is using 80 ports, either stopping IIS before starting Apache, or setting up a port for Apache.
To reset the port steps for Apache:
1. Locate the httpd.conf file (that is, d:\Apache\conf\httpd.conf) under the Conf directory under the Apache installation directory. Open it.
2. Find "Listen 80", followed by the Listen number is the port number, we changed to "Listen 8080". It is also ok to modify to another unused port number.
3. Restart Apache for the new configuration to take effect. You can use Apache serive Monitor, the status bar in the lower right corner, to start Apache.
You can also click "Start" > "Run > Enter cmd> carriage return > Navigate to the Apache installation directory to the bin directory, and then enter" Httpd–k start ".
4. At this time in the browser input http://localhost:8080/can be seen with Figure 101 sample results.