How to install the Apache Server on Windows

Source: Internet
Author: User

Note those of interested in the Apache 2.0.X tutorial, it has been abandon and I'll no longer keep it updated,    But it can is found here. Apache 2.2.X
    1. Download & Unpackgo To http://www.apache.org/dist/httpd/binaries/win32/ and Choose a mirror. You want the latest , Win32-x86-no_ssl.msi   "MSI Installer package" release.

      My file was named:  httpd-2.2.21-win32-x86-no_ssl.msi
      note about finding the download links
      apache sometimes moves the "Quick Download" link to the Win32 binary. The long officially find it is download >  other files  >  binaries  folder (not the "Binary releases" info-link at the top) >  Win32 & Nbsp;folder > then the latest  win32-x86-no_ssl.msi  release
    2. Installwhen you install Apache and you'll get a prompt for "Server information." Here is the settings I used:
      Network domain:localhostserver name:localhostadmin Email: (Any email. real or fake) [checked]: to all Users, on Port, as a Service
    3. Starting/stopping Apacheafter installation Apache2 would automatically start. The icon in the System Tray means it started. The icon means the "Monitor Apache Servers" is running, but Apache2 isn ' t started.

      You can easily start/stop/restart Apache and Apache2 via the that icon in your System Tray. If you get ' The requested operation has failed! ' error while starting Apache use the ' Test Configuration ' shortcut in the Start Menu to find the error (if the text window pops up then closes before you can read it, your config file is fine).
    4. Testingnow the ultimate test. To see if it ' s serving. Open your browser and head to:http://127.0.0.1/orhttp://localhost/

      If It shows the it works! you have your server software installed and running.
    5. Making Apache point to your filesusing Notepad open c:/program Files/apache software foundation/apache2.2/conf/httpd.conf (In the Start-menu there should also is a"Apache HTTP Server 2.2 > Configure Apache server > Edit the Apache httpd.conf Configuration File"Shortcut) and search forDocumentRoot. Change it from something likedocumentroot "C:/Program files/apache software Foundation/apache2.2/htdocs"To the location where your HTML files and site is located. In my case:documentroot "c:/public_html"
      NOTE
      The first time I installed Apache2, I accidentally changed serverroot. Make sure to the correct line which is DocumentRoot and which are down to line 175.
      Then scroll the About one page and the change:<directory "C:/Program files/apache software Foundation/apache2.2/htdocs" >To point-to-same location-you-documentroot-in-the-last step.

      Restart Apache to make the changes take effect

How to install the Apache Server on Windows

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.