Install Apache notes under Windows

Source: Internet
Author: User
Tags apache download vc9

has been used by others to configure the Apache environment to open, today want to install their own configuration under the Windows Apache (nginx+fastcgi), MySQL, PHP and so on.

Although most of the time is engaged in front-end development, and occasionally to engage in server development, familiar with the service-side environment configuration, the heart of the gas.

1. Apache Download

This download encountered several pits, and finally to the online search to solve the problem.

: http://httpd.apache.org/download.cgi Select the latest version after opening

The page jumps to the related resource item, selects the Windows resource

There are several options for entering Windows resources:

The first Apachehaus, which is a third-party download platform that downloads the standalone Apache on its website will be a compressed package

The second is also a standalone Apache, and the other three are integrated development environments.

Choose the first one here.

In the Open download page will find many versions, each version needs to compile the environment is not the same, be sure to choose the right version, otherwise the installation will fail.

began to download the VC14, install the Times wrong, and later found that there is this version limit. Here download the VC9 version of Apache 2.4.20 x64, Win7 compile and install through.

Apache 2.4.x VC14
Built using C sources from the ASF and OpenSSL on Visual Studio (VC14).
Note:vc14 binaries do not run on Windows XP or Server 2003

Apache 2.4.x VC11
Built using C sources from the ASF and OpenSSL on Visual Studio (VC11).
NOTE:VC11 binaries do not run on Windows XP or Server 2003

Apache 2.4.x VC9
Built using C sources from the ASF and OpenSSL on Visual Studio (VC9).
See readme_first.html file for details.

2. Configuration

Unzip the downloaded Apache24 to the location you want to place, and this will be renamed Apache C-Drive C:\wamp-all\apache

Open the Apache\conf\httpd.conf configuration file and change the default Srvroot address to:

Define srvroot "C:/wamp-all/apache"

Found: Listene 80 change to the port number you want.

Next Configure the Master service to install Apache

CMD window, input: "C:\wamp-all\apache\bin\httpd.exe"-K install-n Apache

The above command contains quotation marks, which means that the Apache service is installed and the name of the service is Apache (can also be changed to another), enter.

Tip: 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.

3. Start

Install directory, locate the C:\wamp-all\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.

Click Start to open the service

Open Browser, enter access

http://localhost if the interface appears as shown, the Apache server is now ready to run

4. Uninstall

If the Apache server software does not want to use, want to uninstall, you need to uninstall the Apache service first.

To stop the service first, in the CMD command window, enter the following:

SC Delete Apache

Apache is the service name of the Apache server

After successful, delete the folder of the installation path.

Summary: The entire installation and simple configuration process is completed, or it took some time, mainly to download the pit there more time, specific other more configuration items to be studied. Be free to study the environment configuration under Linux.

Reference Documentation:

http://httpd.apache.org/download.cgi

Http://jingyan.baidu.com/article/d8072ac47baf0eec95cefdca.html

Install Apache notes under Windows

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.