Apache HTTP Server Tutorial
Step 1: Download
Download Apache HTTP Server at http://httpd.apache.org/download.cgi, navigate to Binaries → Win32 → httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
Step 2: Install
Install the .msi file to a directory (referred to as ~ below).
- Domain:
test.com - Server name:
test.com - Administrator’s email:
any@example.com
Step 3: Directory Structure
Four folders after installation:
bin— binaries likehttpd.exeandApacheMonitor.execonf— configurationsmanual— documentationhtdocs— Apache root directory (web content)
Step 4: httpd.conf
Key configuration in httpd.conf:
Listen 8000
ServerName localhost:8000
ServerRoot "~"
DocumentRoot "~/htdocs"
Step 5: Start Server
Change directory to ~\bin and run:
httpd -k install # Install Apache server service
httpd -k start # Start Apache server
Open browser and navigate to localhost:8000 — you should see “It Works!” if successful.
Step 6: ApacheMonitor
After starting, ApacheMonitor.exe will appear in the taskbar system tray and startup items.
Step 7: Stop Server
httpd -k stop # Stop Apache server
httpd -k uninstall # Uninstall Apache server service