How to install or uninstall Apache services under the Windows platform

Source: Internet
Author: User

Install Download Resource Pack
    1. Download the download link (here at <– Point):

    2. Then, select the version that you want to download, I choose the latest edition: 2.4.16, click the link:

    3. Because my is the Windows platform, so I choose:Files for Microsoft Windows, continue to click:

    4. Here, there are 5 download sources, I chose:Apachehaus, continue to click:

    5. Pay attention when you get here! For the version of your system, select the appropriate version! My is a 64-bit system, so, I chose the below:Apache 2.4.16 x64 , then, click Download Locations Under the small flag, you can download, here, the proposed use of thunder and other download tools, or may download failure (Campus network can not hurt Ah =_=)

Installing Apache Services

Next, the Apache service is installed.
1. First, unzip the downloaded compressed package to a directory, it is recommended to extract the root directory of a disk, convenient point.
2. Enter the apache/conf directory, open the httpd.conf file with Notepad, find the Define Srvroot "Apache24" line, change it to the directory where the Apache folder is located, save the changes.
3. Open the command line as an administrator, enter:-Split Line--"Xxx/apache/bin/httpd.exe"-K install-n Apache <--split line (where XXX stands for Apache's file directory)-- Install Apache Service ( Note: Here quotation marks cannot save!!!) )
4. Soon after the normal installation is complete, it will be shown: Errors reported here must is corrected before the service can be started. This means that if there is an error message behind the sentence, the service installation fails and the error needs to be corrected first. If not, then success.
5. In the installation directory, locate the Xxx\apache\bin\apachemonitor.exe executable file, double-click to run, the desktop appears in the lower right corner of the icon, double-click the Open Window interface, you will see:

Open Apache Service

Click Start on the right to start the Apache service. However, before the time, the Apache service needs to be set to Manual in Windows system Services (Note: My is Win7, different versions of Windows may differ slightly):
1. Win+r, open the Run box, enter: Services.msc, find the Apache service, right-click, set to Manual, see figure:
2.
3.
4. Set the startup type to: manual , OK.

Done!

At this point, the Apache server should have been deployed to complete, open a browser, enter: http://localhost Enter, if displayed as follows (previous version is displayed:It works! ), then congratulations, success:

Some of the problems that may arise:

problem : When I enter "Xxx/apache/bin/httpd.exe"-K install-n Apache, when there is insufficient permission, you are prompted may need to be a administrator
workaround : Run the command line tool as Administrator:win+r-> enter cmd, right-click on the cmd.exe that appears, and run as Administrator

problem : After the installation of Apache, in the browser input http://localhost and no egg, the display is: Connect not to the server!!!
workaround : This situation, generally because you have Apache default listening port 80 to change, generally do not change, if the 80 port is occupied by other programs, can be changed to other ports, at this time: so enter the IP or localhost, to add the port number after. That is: http://127.0.0.1:xxxx/or http://localhost:xxxx/ here, XXXX represents the port number you modified!!!

Full Uninstall Apache
    1. Run Services.msc and stop the Apache service in the service. Alternatively, use the Apache Monitor tool to manually stop the Apache service from shutting down;
    2. Run the command line program, enter SC delete apache (xxxx), delete the service; After Apache plus xxxx, because, perhaps your computer is not called Apache, may also be called Apache, or other, these are installed at the time of the designation;
    3. Delete the Apache folder.
    4. Complete Uninstall succeeded!

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

How to install or uninstall Apache services under the Windows platform

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.