Download and installation of Apache under Windows

The support of the server is indispensable for the operation of PHP. What is a server? In layman's terms, a server software is installed on a computer, and this computer can be called a server. The server software and the computer's own operating system are two different things. The computer's own operating system can be linux, Unix, Windows or MacOS. At the same time, the service software can also be Apache (PHP), Tomcat (java/jsp), IIS (asp).

PHP mainly uses Apache server, the mainstream site building combination is LAMP (Linux, Apache, MySQL, PHP), and the integrated server software under Windows is WAMP (Windows, Apache, MySQL, PHP). In addition, there are some other PHP server software, such as lighttpd in Germany and nginx in Russia.

In my study, I mainly used the Apache server, so here is mainly about the download and installation of the Apache service.

(1) Download Apache HTTP Server server from apache official website

I believe that some friends want to download from the official website when they first use the apache server, but they may be a bit at a loss when faced with the numerous projects, mirrors and directories on the official website. Here are the specific steps:

①Open apache official website http://www.apache.org/
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here
Insert picture description here
(2) Installation of Apache server

After the Apache server download is complete, unzip it.

1. Download the installation package
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here
2. Use the command line to start

I don’t know why I can’t start it with the command line, the screenshot is as follows:

Insert picture description here
3. Use the Apache server's own window to open

Find the ApacheMonitor.exe in the bin directory, open it and
Insert picture description here
double-click to run it. An icon will appear in the lower right corner of the desktop. Double-click to open the window interface, and you will see the following picture:
Insert picture description here
click start on the left to start the apache service.

In addition, it can be seen from this interface that it can manually control the opening and closing of the service. To save resources, when shutting down the Apache server, please click "Stop" to shut down the apache service. Of course, this service can also be turned off in the windows system service (it is recommended to set it to manual).

The following figure shows the status of the service successfully displayed:
Insert picture description here
open the browser, enter http://localhost, if the interface shown in the figure below appears, the basic configuration of the Apache server is completed, and the apache server is ready to run at this time, more specific The configuration of, requires users to self-understand.
Insert picture description here
(5) Uninstallation of apache service

If you don’t want to use the Apache server software, you need to uninstall the apache service first (remember, if you directly delete the folder in the installation path, there will be residual files on the computer, which may cause unnecessary trouble), in the cmd command window, Enter the following (it is recommended to stop the service first and then delete): sc delete apache (apache is the service name of the Apache server).
Insert picture description here
Note: I have not tried the uninstallation of the apache service. I wonder if it is feasible? It's just hard work to get the Apache server ready, and I don't want to toss about it anymore.

So far, the download, installation, startup and uninstallation of the Apache server are all over.

Note: Regarding the purpose of each file under the Apache server, as shown in the figure below:

Insert picture description here
Original: https://blog.csdn.net/mikasoi/article/details/80976425

Guess you like

Origin blog.csdn.net/Love_Polaris/article/details/95760548