How to Install Apache on Windows 11
Install Apache on Windows 11 step by step, configure localhost, and get your local web server running in minutes.
Download Visual VC++
Open Official Apache download page:
https://www.apachelounge.com/download/
Download Visual C++ Redistributable Visual Studio 2017-2026: vc_redist_x64.exe
Download Apache
Download the latest Apache Win64 ZIP package
Install Visual C++ Redistributable
Run and Install VC_redist.x64.exe
Extract Apache
Extract the contents of httpd-2.x.x-Win64-VS18.zip to C:\
Start Apache
Open the command prompt (cmd) and Start Apache with:
cd C:\Apache24\bin
C:\Apache24\bin>httpd
Open apache configuration file httpd.conf:
C:\Apache24\conf\httpd.conf
#ServerName www.example.com:80
Replace with this line:
ServerName localhost:80
Restart Apache in Command Prompt:
[Ctrl] + [C]
C:\Apache24\bin\httpd
Open http://localhost
Open http://localhost in a browser. “It works!” message should appear.
If this happens, Edit C:\Apache24\conf\httpd.conf
Change the line Listen 80 to Listen 8080 or any other free port.
Restart Apache
Install Apache as Windows Service
Open the command prompt and type:
cd c:\Apache24\bin
c:\Apache24\bin>httpd.exe -k install
Open the command prompt
Stop the Apache Service:
c:\Apache24\bin>httpd.exe -k stop
Or Task Kill Apache Service:
c:\Apache24\bin>taskkill /F /IM httpd.exe
Confirm in System Services
Press Windows Key, type Services, press Enter.
Find Apache2.4
Make sure:
Status: Running
Startup Type: Automatic
Confirm Apache works
Refresh browser:
http://localhost