To Install Apache as a service:
In most cases you will want to run Apache as a Windows Service.
To do so you install Apache as a service by typing at the command prompt [1];
httpd -k install
You can then start Apache by typing
httpd -k start
Apache will then start and eventually release the command prompt window.
[1] You have to run the command prompt as Administrator in Windows Vista/7/2008/8/8.1/10/2012/
Other Command line options:
Stop Apache | httpd -k stop | |
Restart Apache | httpd -k restart | |
Uninstall Apache Service | httpd -k uninstall | |
Test Config Syntax | httpd -t | |
Version Details | httpd -V | |
Command Line Options List | httpd -h |