Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Manually create an Apache Windows Service

I accidentally removed my Apache windows service trying to install another Apache web server. Does anyone know how I can create another Apache windows service from cmd? I tried "sc create ..." but I am missing a script on the end like -k start? Not sure what I need for the end of it...

I am running Apache 2.2

Thank you

like image 907
Jared Avatar asked Oct 23 '09 14:10

Jared


People also ask

What is the name of Apache service in Windows?

Earlier versions of Apache only support the default service name 'Apache'. The default "service name", if one is not specified, is "Apache".


1 Answers

On Apache 2.4 the executable have changed name to httpd.exe, the command would be:

httpd.exe -k install -n "Apache2.4" 

With a name switch in order to give the service a distinct name.

like image 50
Alexander Kjäll Avatar answered Oct 12 '22 20:10

Alexander Kjäll