Configure Apache server under Windows

Source: Internet
Author: User

First step: Download the latest Apache.

Download URL: HTTP://WWW.APACHEHAUS.COM/CGI-BIN/DOWNLOAD.PLX

The second step: unzip the download file to a working directory. D:\Apache

Step Three: Modify the/conf/httpd.conf file.

    • Modify ServerRoot for Apache working directory: D:/apache

    • To modify the listen port number, make sure to use a port number that is not occupied. Since my machine 80 port is already occupied, I used 81 ports.

    • Modify the DocumentRoot to change the documentroot to D:\Apache\htdocs

    • Modify the directory to comment out the deny from all in the Directory tab.

Fourth Step: install Apache as a Windows Service and open cmd as an administrator. Input: D:\Apache\bin\httpd.exe "-install-n Apache Press ENTER.

The message is as follows: If there is an error, follow the error message to modify it.

The Apache service appears when you view service Manager after the installation is successful.

Fifth step: after successful installation, to start the service

Sixth Step: Verify the success, open the browser. Enter http://localhost:81, if displayed: It works! done!!!!

Configure Apache server under Windows

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.