Prerequisites
Visual C++ Installation: Before processing the installation of apache on the windows server, first, you need to install Visual C++ on the windows server. Learn: How to install Visual C++ on Windows Server? Apache Installer: Download the apache installer compressed file from the below link. Download: https://www.apachehaus.com/downloads/httpd-2.4.46-o111j-x86-vc15.zip Update Windows: We highly recommend updating windows to its latest version. Learn: How to Apply Windows Updates For Server 2012 R2, 2016?1. After downloading the Compressed Apache → Extract it using default or preffered extraction tool to C:\ Drive.
![extract-the-apache-on-windows](https://howto.hyonix.com/wp-content/uploads/2021/08/extract-the-apache-on-windows.png)
![navigate-to-local-c-drive-windows-server](https://howto.hyonix.com/wp-content/uploads/2021/08/navigate-to-local-c-drive-windows-server.jpg)
#ServerName www.example.com:80
ServerName localhost
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
AllowOverride None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
AllowOverride All
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule rewrite_module modules/mod_rewrite.so
3. Now, open Command Prompt (CMD) as Administrator.
![open-cmd-as-administrator](https://howto.hyonix.com/wp-content/uploads/2021/08/open-cmd-as-administrator.png)
![navigate-to-apache-24](https://howto.hyonix.com/wp-content/uploads/2021/08/navigate-to-apache-24.png)
![navigate-to-bin](https://howto.hyonix.com/wp-content/uploads/2021/08/navigate-to-bin.png)
![run-httpd-install-k](https://howto.hyonix.com/wp-content/uploads/2021/08/run-httpd-install-k.jpg)
Allow Port In Firewall
1. Log in to Windows Server → Start → Administrative Tools → Windows Firewall with Advanced Security.![navigate-to-start-administrative-tool](https://howto.hyonix.com/wp-content/uploads/2021/06/navigate-to-start-administrative-tool.png)
![open-windows-firewall-and-advanced-firewall](https://howto.hyonix.com/wp-content/uploads/2021/06/open-windows-firewall-and-advanced-firewall.png)
![Allow Incoming Connections Of Program From Windows VPS / Server Firewall](https://howto.hyonix.com/wp-content/uploads/2021/06/navigate-to-inbound-rule-e1624529078406.png)
![click-on-new-rule-inbound-firewall-rule](https://howto.hyonix.com/wp-content/uploads/2021/08/click-on-new-rule-inbound-firewall-rule.jpg)
![Protocols-and-ports-section-windows-firewall](https://howto.hyonix.com/wp-content/uploads/2021/08/Protocols-and-ports-section-windows-firewall.jpg)
![Action-tab-select-allow-connections](https://howto.hyonix.com/wp-content/uploads/2021/08/Action-tab-select-allow-connections.jpg)
![Profile-section-firewall-windows](https://howto.hyonix.com/wp-content/uploads/2021/08/Profile-section-firewall-windows.jpg)
![Name-firewall-rules](https://howto.hyonix.com/wp-content/uploads/2021/08/Name-firewall-rules.jpg)