Tutorial on installing Apache 2.4.41 on Windows 10

Tutorial on installing Apache 2.4.41 on Windows 10

1. Apache 2.4.41 installation and configuration

The first step is to download the latest Apache package from: https://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC15, as shown below

The second step is to download and install the VC15 runtime environment. The download address is: https://www.apachehaus.com/cgi-bin/download.plx#REDIST15, as shown in the figure below

Step 3. Unzip httpd-2.4.41-o111c-x64-vc15-r2.zip locally and copy the Apache24 subfolder in the directory to the installation directory, for example D:\Program Files\Apache24

Step 4: Modify the Apache24/conf/httpd configuration file. Before modifying it, it is recommended to back up the initial httpd.conf file.

Define SRVROOT "D:/Program Files/Apache24"

ServerRoot "${SRVROOT}"

Step 4. Start the command prompt as an administrator, enter the bin directory of Apache24, and enter the following command:

Microsoft Windows [Version 10.0.18363.535]
(c) 2019 Microsoft Corporation. All rights reserved.
 
C:\Windows\system32>d:
 
D:\>cd D:\Program Files\Apache24\bin
 
D:\Program Files\Apache24\bin>

Step 5. Enter the command to install the run command. You can also uninstall the run command through httpd.exe -k uninstall -n "Apache24", as shown in the figure below

httpd.exe -k install -n "Apache24" 

The Apache24 service can be started and closed by the following commands:

>httpd.exe -k start -n "Apache24"
>httpd.exe -k stop -n "Apache24"

After successful installation, you can use httpd -k shutdown/stop/restart

Use shutdown, stop, start and other commands to shut down, stop and start the Apache service.

Summarize

The above is the tutorial on how to install Apache 2.4.41 under Windows 10 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • How to implement web stress testing through Apache Bench
  • How to install apachebench separately in CentOS environment
  • Spring Cloud integrates Apache-SkyWalking to implement link tracking
  • Apache Shrio security framework implementation principle and example explanation
  • Detailed explanation of the pitfalls of Apache domain name configuration
  • Detailed description and usage examples of Apache Commons tool classes in Java's commonly used class library
  • Apache Bench stress testing tool implementation principle and usage analysis

<<:  Detailed explanation of Mysql self-join query example

>>:  Implementation of multi-environment configuration (.env) of vue project

Recommend

Detailed explanation of Vue life cycle functions

Table of contents Lifecycle Functions Common life...

Analysis and solutions to problems encountered in the use of label tags

I used the label tag when I was doing something re...

WeChat Mini Program Lottery Number Generator

This article shares the specific code of the WeCh...

JavaScript adds prototype method implementation for built-in objects

The order in which objects call methods: If the m...

Linux redis-Sentinel configuration details

download Download address: https://redis.io/downl...

How does Zabbix monitor and obtain network device data through ssh?

Scenario simulation: The operation and maintenanc...

Install Python 3.6 on Linux and avoid pitfalls

Installation of Python 3 1. Install dependent env...

Basic notes on html and css (must read for front-end)

When I first came into contact with HTML, I alway...

Nginx uses ctx to realize data sharing and context modification functions

Environment: init_worker_by_lua, set_by_lua, rewr...

A brief discussion on several situations where MySQL returns Boolean types

mysql returns Boolean type In the first case, ret...

Detailed explanation of Vue monitoring attribute graphic example

Table of contents What is the listener property? ...