Installing Apache server under Windows

Source: Internet
Author: User

One, install Apache, configure the success of a common Web server

Run the downloaded "Apache-win32-x86-no_ssl.msi", the following interface appears.

The Apache HTTP Server Installation Wizard interface appears, click "Next" to continue.

Confirm consent to the Software Installation license regulation, select "I accept the terms in the License Agreement", click "Next" to continue.

For instructions on installing Apache to Windows, please read on and press "Next" to continue.

Set up system information, fill in your domain name under network domain (for example: chinaz.com), enter your server name under server name (for example: chinaz.com, hostname plus domain name), in Administrator ' s Email address to fill in the system administrator's contact e-mail addresses (such as: [email protected]), the above three information for reference only, where the contact e-mail address in the case of a system failure to provide visitors, three information can be arbitrarily filled, invalid also line. Here are two options, the image is selected for all users of the system installation, using the default 80 port, and as a system service automatically start, the other is to install only for the current user, using port 8080, manually started. General choice. Press "Next" to continue. ]

Choose the installation type, typical as the default installation, custom for user-defined installation, we choose custom here, there are more options available. Press "Next" to continue.

The Select installation Options screen appears, left-click on "Apache HTTP Server", select "This feature, and all subfeatures, will is installed on the local hard drive.", i.e. "this section, and Subordinate sub-section content, all installed on the local hard disk ". Click "Change ..." To manually specify the installation directory.

I choose to install in the "D:\apache", you choose, generally recommended not installed in the operating system disk, lest the operating system is broken, the restore operation to the Apache configuration file also cleared. Select "OK" to continue.

Go back to the interface and select "Next" to continue.

Confirm that the installation options are correct, if you think you want to check again, you can click "Back" step-by-step to return to the check. Click "Install" to start the installation as set by the previous setup option.

The interface is being installed, please wait patiently until the following screen appears.

The installation Wizard completed successfully, the lower right corner of the status bar should appear below the green icon, indicating that the Apache service has started to run, press "Finish" to end Apache software installation.

We are familiar with this icon, very convenient, left-click on the icon, the following interface, there are "start", "Stop", "Restart (restart)" Three options, it is convenient for the installation of Apache server to do this.

Okay, now let's test the Web interface that runs by default configuration, hit "http://localhost" in the IE Address bar, click "Go", you can see the following page, indicating that the Apache server has been installed successfully.

Now start to configure the Apache server, so that it better serve us, in fact, if not configured, your installation directory under the Apache\htdocs folder is the default root directory of the site, put files on it can be. Here we still want to configure, what problems or modifications, configuration is always to be,, "start", "All Programs", "Apache HTTP Server", "Configure Apache Server", "Edit the Apache httpd conf Configuration file ", click Open.

Now formally start to configure the Apache server, look for the keyword "DocumentRoot" (that is, the site root), find the place as shown, and then the "" in the address to your website root directory, address format please follow the picture, mainly the general file address of the "\" in Apache to change to “/”。

You can also find it by looking for "Directory" and modify it.

DirectoryIndex (directory index, that is, in the case of only the specified directory, the default display of the file name), you can add a lot, the system will be based on the left-to-right order of priority display, separated by a single half-width space, such as some of the site's homepage is index.htm, the cursor is added " Index.htm "filename is arbitrary, do not necessarily have to" index.html ", such as" test.php ", etc., can be.

OK, the simple Apache configuration is over, now with the previous small icon restart, all the configuration will take effect, your site becomes a Web server, if you load the firewall, open 80 or 8080 ports, or allow Apache program access to the network, otherwise people can not access. If you have a public network IP (general ADSL or telephone dial-up Internet is all), you can invite all Internet friends access to use HTTP.//Your IP address (IP address query can access HTTP.// www.goodwaiter.com, query content within that is) your site, or if you do not have a public IP, you can also tell the intranet IP address to other users in the LAN, let them through http://Your intranet IP address, access to your website.


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.