Ashish Ranjan Ashish Ranjan - 3 months ago 19x
SQL Question

How to run the httpd daemon process for apache, in background in windows?

I downloaded httpd-2.4.23-x64-vc14, unzipped, changed some configurations in httpd.conf and now when I run httpd.exe, my localhost runs fine, but I don't want to keep seeing that command prompt, and go and start it again everytime I shutdown my system. How to make it act like a service, which automatically starts everytime I start my machine.


Running Apache as a Windows Service

Apache comes with a utility called the Apache Service Monitor. With it you can see and manage the state of all installed Apache services on any machine on your network. To be able to manage an Apache service with the monitor, you have to first install the service (either automatically via the installation or manually).

You can install Apache as a Windows NT service as follows from the command prompt at the Apache bin subdirectory:

httpd.exe -k install 

You will have to do this using a Windows Account that is allowed to register sevices, probably an Administrator account.

Shamelessly RIPPED OFF from of all the strange places THE MANUAL

Go figure.... who would have thought of looking there!

Then check with the windows services monitor


that Apache is set to Startup Type = Auto so that it starts as part of a boot