Download the latest version of Apache HTTP Server from the Apache Lounge.
Once the download is complete, locate the ZIP file in your Downloads folder or wherever you saved it and extract the Apache Files.
Visit the Microsoft Visual C++ Redistributable download page and download the Visual C++ Redistributable version required by the Apache version you downloaded.
Execute the downloaded installer. Put a check mark on I agree to the license terms and conditions then select Install.
Select Close.
Navigate to the Apache directory: Open File Explorer and navigate to C:\Apache24\conf.
Open the httpd.conf
file using a text editor like Notepad or Notepad++.
Find the line that starts with #ServerName and remove the #
to uncomment it.
Change ServerName to your localhost IP address and port (e.g., localhost:80
). After making the changes, save the file and close the text editor.
Press Win + X and select Windows Terminal (Admin) or Command Prompt (Admin).
Navigate to Apache’s bin directory:
CD C://Apache24/bin
Install Apache service:
httpd.exe -k install
Start Apache Service:
httpd.exe -k start
Allow Apache Through Windows Firewall by selecting Allow Access.
Open your web browser and go to http://localhost
. If Apache is installed correctly, you should see the “It Works!” page.