| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: httpd -k config |  |  
| Author |  |  
| Otomatic 
 
  
 Joined: 01 Sep 2011
 Posts: 287
 Location: Paris, France, EU
 
 | 
|  Posted: Sat 12 Jul '25 17:22    Post subject: httpd -k config |   |  
| 
 |  
| Hi, 
 To create a service, use the option
 
  	  | Code: |  	  | httpd -n servicename -k install | 
 but this service is created with Startup Type: Automatic.
 
 I use the command to change the Startup Type to Manual:
 
  	  | Code: |  	  | sc config servicename start= demand | 
 
 However, there is a command:
 
  	  | Code: |  	  | httpd -n servicename -k config | 
 but nowhere have I found the syntax for this command.
 
 Where can I find the syntax?
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Tue 15 Jul '25 9:21    Post subject: |   |  
| 
 |  
| -k config is for a custom config file rather than the default httpd.conf 
 
  	  | Code: |  	  | httpd -k config -n "MyServiceName" -f "C:/myserver-conf/my.conf" | 
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |