Table of Contents

Start Apache as Service on MS Windows

To Install

  1. Open a terminal in Windows (cmd.com)
  2. cd to the Apache httpd bin directory
  3. Type the following command. Apache Httpd 2.4 can be anything you like. It is the name of the service.
    httpd.exe -k install -n "Apache Httpd 2.4" 

To Remove

  1. Open a terminal in Windows (cmd.com)
  2. cd to the Apache httpd bin directory
  3. Type the following command. -n “Apache Httpd 2.4” is optional if you only have one Apache service on your Windows.
    httpd.exe -k uninstall -n "Apache Httpd 2.4"