Apache Environment of Windows Installation and Configuration
Last Updated:2021-11-12
- Download at the Apache official website
- Open the decompressed file, modify the http.conf service path and port in the conf file.
- Install the apache
An error occurs is because to have Apache installed, the latest Visual C++Redistributable 2015 shall be available. Its download address: https://www.microsoft.com/zh-CN/download/details.aspx?id=48145
Have Visual C++Redistributable 2015 installed before executing httpd -k install
- Start the apache
Type net start apache2.4 to start Apache, as shown in the figure:
- Verification
Access the http://localhost default page
- You need to upload HTML pages to this place C:\Apache24\htdocs with file information as shown in the figure:
- Configure a Firewall rule
Windows server enables advanced firewall by default. Once a service is up and running, you need to open a corresponding port or shut down firewall in inbound rules of the firewall.
To shut down firewall, see the documentation:https://cloud.baidu.com/doc/BCC/s/bjxlq3hzn