Apache HTTP Server Installation

Source: Internet
Author: User

1. Go to Apache HTTP Server Download website: http://httpd.apache.org/download.cgi

2. Select a server version, here Apache HTTP server 2.4.25 (httpd): 2.4.25 is the latest available version

3. Click Files for Microsoft Windows

4. In downloading Apache for Windows This column, Apache explained that does not give the running version, only gives the source code, needs to compile itself. But here are a few links, several sites to help us compile a binary package. Pick one and go in.

5. Download the version of the operating system that corresponds to your computer, such as 64-bit download Httpd-2.4.25-win64-vc14.zip

6. Unzip the package to any directory, open readme_first.html, read the content (you will install it after reading)

7. English too long don't want to see, then continue to read my nonsense: Open cmd (Win key +r), CD into the Extract directory \apace24\bin record (such as E:\Apace24\bin), enter "httpd-k install", If there is no error, the installation succeeds.

8. Of course it is impossible not to error, enter the \apache24\conf directory open httpd.conf, will

Define srvroot "E:\ApacheService\Apache24"
ServerRoot "${srvroot}"

Change the red character to the appropriate location in your computer.

9. Install "httpd-k Install" again, should not error.

10. Enter "httpd-k start" in cmd, andif there is no error, you can enter http://127.0.0.1 in the browser, view, if there is no error, the installation is successful.

11. Of course, the error indicates that the port is incorrect. Open httpd.conf again and modify the port

#Listen 12.34.56.78:80
Listen 80

For Listen 8088 (or other)

enter "httpd-k restart again" to run the server correctly without an error.

12. At this point, enter the server home page at: http://127.0.0.1:8088

13. The Web page is placed in the \apache24\htdocs directory, can be accessed through the Web site, such as:http://127.0.0.1:8088/index.html

Apache HTTP Server installation

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.