httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albert Lunde <>
Subject [users@httpd] Running windows service with -D defines?
Date Wed, 20 Jun 2012 13:43:34 GMT
I'm running Apache 2.2.2 as a service on Windows 7 Ultimate 64-bit, as 
installed with the MSI installer:


I'd like to run it with some "-D name" parameters to define conditional 
behavior, and occasionally change those parameters.

(Most of my experience is on Unix/Linux where I'm used to using IfDefine 
blocks freely.)

I suspect I can modify the command line run for the service with the 
"sc" command, but I'd like advice on the specific syntax.

sc qc says:

C:\Windows\system32>sc qc Apache2.2
[SC] QueryServiceConfig SUCCESS

         TYPE               : 10  WIN32_OWN_PROCESS
         START_TYPE         : 3   DEMAND_START
         ERROR_CONTROL      : 1   NORMAL
         BINARY_PATH_NAME   : "C:\Program Files (x86)\Apache Software 
Foundation\Apache2.2\bin\httpd.exe" -k runservice
         LOAD_ORDER_GROUP   :
         TAG                : 0
         DISPLAY_NAME       : Apache2.2
         DEPENDENCIES       : Tcpip
                            : Afd
         SERVICE_START_NAME : LocalSystem


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message