skip to Main Content

I want to install an Apache 2 server on a Windows 10 system. The official documentation (https://httpd.apache.org/docs/2.4/platform/windows.html) states that:

“The Apache HTTP Server Project itself does not provide binary releases of software, only source code”

To have a binary of the Apache HTTP Server it has to be compiled by oneself or acquired from a distribution provided by a thrid party. These distributions usually bundle Apache with PHP and MySQL.

The question is:

What distribution is recommended to install a standalone Apache 2 server and what are the steps to do it?

2

Answers


  1. Chosen as BEST ANSWER

    I have used the Apache Lounge distribution indicated in the official Apache 2 documentation (https://httpd.apache.org/docs/2.4/platform/windows.html)

    These are the steps to install Apache on Windows using Apache Lounge distribution:

    1. Download Apache 2.4.37 Win64 (https://www.apachelounge.com/download/)
    2. Create folder C:/Apache24
    3. Unzip httpd-2.4.37-win64-VC15.zip in folder C:/Apache24

    Option 1: To run it from the console:

    1. Open Windows Power Shell
    2. Execute httpd.exe

      PS > C:Apache24binhttpd.exe
      

      or

      PS > cd C:Apache24bin
      PS > .install.exe
      
    3. Open http:localhost or http:127.0.0.1 in brwoser

    The message It works! will be displayed

    Option 2: To install it as a service:

    1. Open Windows Power Shell
    2. Open Windows Power Shell as administrator

      PS > Start-Process PowerShell -Verb RunAs
      
    3. Install the service

      PS > cd C:Apache24bin
      PS > .httpd.exe -k install
      
    4. Start the service

      PS > .httpd.exe -k start
      

      or through the services administrator

      PS > services.msc
      Select Apache2.4 > Right-click > Start
      
    5. Open http:localhost or http:127.0.0.1 in brwoser

    The message It works! will be displayed


  2. Easy:

    1. Download from apache lounge https://httpd.apache.org/docs/2.4/platform/windows.html
    2. Go into downloaded zip folder and move the Apache24 folder to C:/
    3. Open terminal to C:/Apache24/bin and execute httpd.exe

    done!

    Now type "localhost" into your browser and a message "It works" should appear on screen.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search