Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

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

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

Here you go: http://support.microsoft.com/kb/193888

share|improve this answer

Your Answer

 
discard

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.