Windows Apache latest download, installation configuration

Source: Internet
Author: User
Tags apache download vc9

One, Apache download:

Login http://httpd.apache.org/download.cgi This address, find 2.4.20, as Location:

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/82/78/wKioL1dWXr_RqTT-AABkCSFHVGs859.png-wh_500x0-wm_3 -wmp_4-s_4079845085.png "title=" 9f61.tm.png "alt=" Wkiol1dwxr_rqtt-aabkcsfhvgs859.png-wh_50 "/>

Enter the following interface, select the first Apachehaus, this is a third-party download platform, download the independent Apache on its website will be a compressed package

The other four, the second is also the independent Apache, the other three is the integrated development environment.

The first one of the little compilation.

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/82/78/wKiom1dWXg3zmtfaAABHYhjgQXg276.png-wh_500x0-wm_3 -wmp_4-s_466687478.png "title=" 1129.tm.png "alt=" Wkiom1dwxg3zmtfaaabhyhjgqxg276.png-wh_50 "/>


In the new interface, you will find VC14 and VC11 and VC9 words, by reading the relevant content, VC9 refers to the code compiled with VS2008, and VC11 is compiled with VS2012, and compiled with VS2012 can not be used in Windows XP and Server 2003.

For compatibility Good point, small compilation with VC14 compiled 64-bit Apache, select download


At this point, the download process is complete!

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/82/78/wKioL1dWX2qQVVFoAAEfOCXCr30677.jpg-wh_500x0-wm_3 -wmp_4-s_3684197157.jpg "title=" qq20160607134028.jpg "alt=" Wkiol1dwx2qqvvfoaaefocxcr30677.jpg-wh_50 "/>


Second, the installation process:

The installation process is very simple, because it is a compressed package, so that its decompression package in the Apache24 extracted to the appropriate location, the directory name can be changed according to their own circumstances

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/82/78/wKioL1dWYL_in6ZBAACKbM5FD9E976.png-wh_500x0-wm_3 -wmp_4-s_3528087006.png "title=" 8023.tm.png "alt=" Wkiol1dwyl_in6zbaackbm5fd9e976.png-wh_50 "/>



configuration process:

Locate the D:\Program files\apache24\conf\httpd.conf file and open it, find: Define srvroot This entry, change the value to the right to

The directory address where you are currently installing Apache, as shown in the following small series:

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/82/78/wKioL1dWYeWi_K4UAAASZ25ih5M640.jpg-wh_500x0-wm_3 -wmp_4-s_493839412.jpg "title=" 1.jpg "alt=" Wkiol1dwyewi_k4uaaasz25ih5m640.jpg-wh_50 "/>

Keep looking, find: Listene 80

If your 80 port is occupied (can be viewed under cmd with Command netstat-a), change the 80 port to another

Save the httpd.conf file.

650) this.width=650; "class=" Exp-image-default "alt=" Apache server latest version download, install and configure (Win version) "Src=" http://a.hiphotos.baidu.com/ Exp/w=500/sign=cb5bdca359afa40f3cc6cedd9b65038c/267f9e2f07082838a79bb785bb99a9014d08f189.jpg "style=" border:0px ; "/>


Next you need to configure the master service to install Apache, and with it, Apache can start:

Open the cmd window and enter: D:\Program Files\apache24\bin\httpd.exe

-K install-n Apache

The command means installing the Apache service and naming the service name Apache (you can also change to another), enter.

Service installation completed, after completion, will be automatically tested, if there is a problem, the window will prompt the error, at this time, please self-troubleshooting according to the error.


The normal installation is complete as shown in the following:

Among them, 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.

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/82/79/wKiom1dWYZrjvPRRAACNBKItgLo177.jpg-wh_500x0-wm_3 -wmp_4-s_4030396856.jpg "title=" Apache install 2.jpg "alt=" Wkiom1dwyzrjvprraacnbkitglo177.jpg-wh_50 "/>

Installed in front and if you have the following tips:

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/82/79/wKiom1dWYSHCqh-VAACOT0QIxM4242.jpg-wh_500x0-wm_3 -wmp_4-s_405851481.jpg "title=" Apache install 1.jpg "alt=" Wkiom1dwyshcqh-vaacot0qixm4242.jpg-wh_50 "/>

The solution is: Download vc++2015 and install

Links are as follows: https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=48145


In the installation directory, locate the D:\Program files\apache24\bin\apachemonitor.exe executable file, double-click Run, the desktop appears in the lower right corner of the icon, double-click the Open Window interface.

Click Start on the left to start the Apache service.

Supplementary sentence, from this interface can be seen, it can manually control the opening and closing of services, in order to save resources, the time to close the Apache server, please click "Stop" to close the Apache service.

Of course, the service can also be turned off in Windows system Services (recommended for manual setup)

Shows the status of the service successfully displayed:

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/82/79/wKiom1dWYqTi5DS4AABYPYgS_XE201.jpg-wh_500x0-wm_3 -wmp_4-s_2446751729.jpg "title=" 2.jpg "alt=" Wkiom1dwyqti5ds4aabypygs_xe201.jpg-wh_50 "/>


Open Browser, enter access

http://localhost if the interface appears as shown, then the basic configuration of the Apache server is complete, the Apache server is now ready to run, more specific configuration, users need to go to ponder by themselves.

650) this.width=650; "class=" Exp-image-default "alt=" Apache server latest version download, install and configure (Win version) "Src=" http://a.hiphotos.baidu.com/ Exp/w=500/sign=831ee487ccfc1e17fdbf8c317a91f67c/f3d3572c11dfa9ec4aa4058661d0f703908fc19d.jpg "style=" border:0px ; font-family: ' Microsoft Yahei ', ' Microsoft Black ', Arial, ' song Body ', Sans-serif;line-height:28px;text-align:justify;white-space: Normal;background-color:rgb (255,255,255); "/>

Added: Apache Service Uninstall
    1. 1, if the Apache server software does not want to use, To uninstall, you need to uninstall the Apache service (remember, if you delete the folder of installation path directly, there will be residual files on the computer, may cause unnecessary trouble)

      in the cmd command window, enter the following (it is recommended to stop the service before deleting):

      sc Delete Apache

      apache is the service name of the Apache server

      650) this.width=650; "class=" Exp-image-default "alt=" Apache server download, install and configure the latest version (Win version) "Src=" http://a.hiphotos.baidu.com/exp/w=500/sign=2482f88294dda144da096cb282b6d009/ F2deb48f8c5494eed84a53882ef5e0fe99257e32.jpg "style=" border:0px;font-family: ' Microsoft Yahei ', ' Microsoft Ya Black ', Arial, ' song Body ', Sans-serif;line-height:28px;white-space:normal;background-color:rgb (255,255,255); "/>


Iii. examples of using the Http.exe command under Windows:

Most of the times we use the Http.exe command to install, open, stop, delete Apache services these operations.

Httpd-k install to register Apache as a Windows service, you can specify the service name "Apache". Httpd-k install-n "service name" registers Apache as a Windows service and assigns itself a service name. Httpd-k install-n "service name"-F "conf\my.conf" registers Apache as a Windows service, assigns itself a service name, and uses a specific configuration file. Httpd.exe-k uninstall-n "myServiceName" removes the Apache service and formulates a service name for itself. Httpd.exe-k start-n "myServiceName" launches the Apache service. Httpd.exe-k stop-n "myServiceName" or httpd.exe-k shutdown-n "myServiceName" to stop the Apache service. Httpd.exe-k restart-n "myservicename" restart Apache service. Httpd.exe-n "myServiceName"-t


Parameter options:

-D ServerRoot
Set the ServerRoot directive to the initial value of ServerRoot. It can be overridden by the ServerRoot directive in the configuration file. Its default value is/usr/local/apache2.


-F Config
Use config as the configuration file in startup. If config does not start with "/", it is a path relative to ServerRoot. Its default value is conf/httpd.conf.


-K Start|restart|graceful|stop|graceful-stop
Sends a signal to cause the httpd to start, restart, or stop.


-c directive
Before reading the configuration file, the configuration instructions for the directive are processed first.


-c directive
After the configuration file is read, the configuration instructions for the directive are processed.


-D parameter
Sets the parameter parameter, which mates with the <IfDefine> section in the configuration file, to conditionally skip or process certain commands when the server starts and restarts.


-E level
When the server starts, set LogLevel to level. It is used to temporarily increase the verbosity of error messages at startup to help with troubleshooting.


-E File
Sends an error message during server startup to file.


-R Directory
When a shared_core rule is used in a server compilation, it specifies that the directory for the shared destination file is directory.


-H
Output a brief description of the available command-line options.


-L
Outputs a list of modules that are statically compiled in the server. It does not list modules that are dynamically loaded using the loadmodule instruction.


-L
Outputs a list of instructions and contains valid parameters and areas of use for each instruction.


-M
Outputs a list of modules that have been enabled, including statically compiled modules in the server and modules that are dynamically loaded as DSO.


-S
Displays the results of the settings read and resolved from the configuration file (only the settings for the virtual host are currently displayed)


-T
Skip root file check at startup/restart (this parameter is valid in Apache 2.2.17 and later versions)


-T
Only syntax checking is performed on the configuration file. The program exits immediately after the parsing check is finished, or returns "0" (OK), or returns a value other than 0 (Error). If you also specify "-D dump_vhosts," the details of the virtual host configuration are displayed.


-V
Displays the version of httpd, and then exits.


-V
Displays the version and compilation parameters of HTTPd and Apr/apr-util, and then exits.


-X
Run httpd in debug mode. Only one worker process is started, and the server is not detached from the console.


The following parameters are for the Windows platform only:
-K Install|config|uninstall
Install Apache as a Windows NT service, change the way Apache services are started, and delete Apache services.


-N Name
Specify the name of the Apache service


-W
Keep the console window open so that you can read the error message.


This article is from "Operation and maintenance record Mei Ling" blog, please be sure to keep this source http://meiling.blog.51cto.com/6220221/1786922

Windows Apache latest download, installation configuration

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.