0%

install apache httpd server 2.2 on windows 10

Guide

install and config

download httpd-2.2.34-win64.zip
extract to c:/Apache2
edit conf/httpd.conf

1
2
3
4
ServerRoot "c:/Apache2"
Listen 80
ServerName 127.0.0.1
DocumentRoot "c:/Apache2/htdocs"

run cmd.exe as administrator and install apache2.2 service

1
2
cd c:/Apache2/bin
httpd.exe -k install -n apache2.2

tips: use sc delete apache2.2 to delete service first if error occurs and then install again.

install service

run bin/ApacheMonitor.exe to start apache2.2 service

apache2.2 service running

access from local

test localhost
works

access from remote

edit conf/httpd.conf

1
2
3
4
5
#Directory "c:/Apache2/htdocs"
AllowOverride None
Order allow,deny
Allow from all
#/Directory

open windows defender and allow Apache Http Server packets in/out
allow apache

  • server host ip: 192.168.6.149
  • access host ip: 192.168.6.100
1
[email protected]>$  wget http://192.168.6.149/1.txt

Reference

History

  • 20181114: created.