How to install Apache Server on WIN10 (64-bit system)

Source: Internet
Author: User

Today installed Apache server, here is my summary of the method:

First, prepare the software

1.64-bit Apache version Portal: http://www.apachelounge.com/download/

2.VC11 Runtime Library

After the download is complete, my decompression directory is J:\apache\:

Second, modify the file

Open the httpd.conf file in the J:\apache\Apache24\conf directory and make the following changes:

ServerRoot (Apache directory) instead of J:\apache\Apache24

ServerName (server name) Remove #, change to 127.0.0.1

DocumentRoot (Modify site root address) Set yourself, generally set to J:\apache\Apache24\htdocs

<directory "Site root address" > same as Previous address

Scriptalias to/cgi-bin/"Apache directory +/cgi-bin/"

<directory "Apache directory +/cgi-bin/" > (different from the directory above)

Three, installation

Install/uninstall command (run cmd as Administrator)

Install command: "J:\apache\Apache24\bin\httpd.exe"-K install-n Apache

Uninstall command: "J:\apache\Apache24\bin\httpd.exe"-K uninstall-n Apache

(Every time you change a. conf file, uninstall and reinstall)

After you finish executing the command, you may experience a problem like this:

This is because the 80 port has been used, so you have to change the port, or in the httpd.conf file found listen 80 this line (about 58 lines), 80 to 8080 on the line, and then uninstall, install.

Until such a prompt appears:

Four, the test is successful

Find a browser, and then enter the URL of the place input http://127.0.0.1:8080/index.html, the following interface is successful

Note: If you set the root of the URL mentioned above as J:\apache\Apache24\htdocs, because this folder will bring a index.html file

If there are any other problems in the installation process, you can discuss them below.

How to install Apache Server on WIN10 (64-bit system)

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.