Web environment Construction--Apache

Source: Internet
Author: User

1. First prepare the resources and download the http://httpd.apache.org/download.cgi on the website.

Select the latest version to download:

Click 2.4.33, jump after select file for Microsoft Windows, jump after select Apachehaus

Then jump to the page after selecting the version that matches your own system, I choose here

2. After the download is complete, unzip the file to the folder you want to install as: D:wamp\apache

3. Open the d:wamp\apache\conf\httpd.conf file in Notepad, locate the Define srvroot, and set the Define srvroot "D:wamp/apache".

Eg: note here that the delimiter must be used/not used \, or it may be an error: Errors reported here must is corrected before the service can be started.

4. Use the administrator to run the cmd window, httpd-k install-n Apache to install Apache service, and make the service name Apache

Eg: if there is a 3 inside the error, it will come back to check the httpd.conf set in the Define Srvroot, is not correct, correct after the new run

Eg: if the ah00369:failed to open Windows service Manager appears, perhaps you forgot to log in as adminstrator? This is because you do not have permissions, use Administrator mode I to run the cmd window

5. Open D:wamp\apache\bin\apachemonitor.exe to open the Apache console. Click Start to see if the start is successful, if successful, then enter http://localhost in the browser, the normal page display will appear

If error:

First, open the Run window and enter regedit

Select Hkey_local_machine\system\currentcontrolset\services\http in the Open window and find start on the right

The default value is generally 3, change him to 0, and then restart the computer, found that it can normally start, OK, complete

6. The administrator runs the cmd window to httpd-k start|stop|restart-n Apache.

PS: Do not know how to run cmd with the administrator, there is a simple way, is directly in the Start menu right-click, direct selection is good,

Web environment Construction--Apache

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.