Double-click the Apache_2.2.8-win32-x86-no_ssl.msi file to begin installing the Apache HTTP Server 2.2.8.
You will see the following screen:
Click Next, then select I Accept the terms in the license agreeement,
Click Next and you will see the following image:
Then click Next to enter the Server information screen, as shown below:
Enter localhost in the text box in Network Domain.
Enter localhost in the text box in Server Name.
Enter an email address in the Administrator's email addresses
Then select for all Users, on Port, as a Service-recommended.
Click Next to select Typical, as shown below:
Click Next to enter the destination Folder screen, as shown below:
Click Next to see the installation Complete screen, as shown below, click Finish to finish the installation.
If you also see the following black and black Dos interface, please different worry, press ESC key to exit. Wait, we need to change the configuration file for Apache HTTP Server.
modifying Apache HTTP Server configuration files
After you install Apache HTTP Server, you will need to modify the configuration file.
The configuration file path for Apache is as follows:
C:Program Filesapache Software foundationapache2.2confhttpd.conf
For security reasons, it is recommended that you back up this file first.
Then use Notepad to open the file and modify the port settings.
will be Listen 80
changed intoListen 8080
Change the ServerName localhost:80 into ServerName localhost:8080.
Save the file.
Start Apache Service
After modifying the configuration file, you can start the Apache HTTP Server.
In the Windows Start menu, select Start--> all Programs--> Apache HTTP Server 2.2--> Monitor Apache Servers, click After you will see in taskbar there A small red icon, double-click the icon to open the Apache Service Monitor screen, as shown below.
Click the Start button to open the Apache Service.
Test Apache HTTP Server is running correctly
Enter http://localhost:8080/index.html in the browser, or enter http://localhost:8080/directly. If the Appache HTTP Server is running correctly, the browser displays the file. The following figure:
The path to the file is: C:Program filesapache Software foundationapache2.2htdocsindex.html
Htdocs is the default root directory for Apache HTTP Server.