How to run apache as a service on windows

Question: How to run apache as a service on windows

Answer:

  • open command prompt as administrator
  • run this command in the command prompt
  • httpd.exe -k install -n MyApacheService

Note: if you want to open as specific version then give full path of the httpd.exe otherwise you will start the apache that is saved in you path variable in environment.

Leave a Comment

Scroll to Top