How to Install Apache Web Server as a Service in Windows?

To install apache web server as a service, open an administrator command prompt,

cd c:xamppapachebin

httpd.exe -k install

apache_install_service