Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have both Apache and IIS on a Windows Server 2k3. The Apache server is reached by tunneling through IIS using the Apache Tomcat Redirector

Everything works just fine until I reboot. When I do apparently the Apache Tomcat 6 service starts before the World Wide Web Publishing (W3SVC) service. Manually stopping and restarting the Apache Tomcat service fixes the problem, but I don't want to have to continue to do it manually every time I reboot.

How can I get Windows to start Apache after IIS?

share|improve this question
up vote 6 down vote accepted

Change the Apache service to be dependant on W3SVC. From an elevated command prompt:

sc config ApacheServiceName depend= W3SVC

Note the space after the equals next to "depend". It needs to be there. Replace ApacheServiceName with the service name (not the display name) of your apache service.

share|improve this answer

Here you go:

share|improve this answer

What you should do is add the W3SVC service as a dependency to Tomcat so that Tomcat will wait for the W3SVC service to start first.

To add a dependency to a service you can do it using the sc command from the command prompt

sc config <service name> depend= <dependencies>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.