Installing Apache HTTP Server

Step 1: Select a binary package provider for Apache for Windows from

Step 2: In this tutorial, select Apache Lounge, and then download the following packages from

Step 3: Double click VC_redist.x64.exe to install the Visual C++ Redistributable first.

Step 4: Unzip the file and place the Apache24 folder under the C drive ("C:\Apache24" is the default ServerRoot in conf\httpd.conf; and the default folder for web files is DocumentRoot "C:\Apache24\htdocs"). If you place the Apache24 folder to another location, change the following setting accordingly.

Define SRVROOT "c:/Apache24"


Paths in httpd.conf and other configuration files must be specified using forward slashes ("/") instead of back slashes ("\").

You could also change the IP address, port number, server name etc. in httpd.conf rather than using the default values.

Tip: In Windows, you can execute the command "netstat -ano | findstr portnumber" to check if the port number is occupied by any other program.

Step 5: Open the command prompt window, go to the C:\Apache24\bin folder, and run the Apache HTTP server.

cd C:\Apache24\bin

Step 6: Test the Apache HTTP server by opening up a Web browser and typing in the address: http://localhost.

The following message indicates the Apache HTTP server is working properly.

You can further test from the development PC by typing http://your_server_ip in a browser.

The Using Apache HTTP Server on Microsoft Windows page has more detailed documentation about using Apache on Windows.