Start Apache as Service on MS Windows
To Install
- Open a terminal in Windows (cmd.com)
- cd to the Apache httpd bin directory
- 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
- Open a terminal in Windows (cmd.com)
- cd to the Apache httpd bin directory
- 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"