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: Apache 2.4.39 automatic start failure after Windows restart |
|
Author |
|
lhh995
Joined: 04 Oct 2019 Posts: 3
|
Posted: Mon 07 Oct '19 20:06 Post subject: Apache 2.4.39 automatic start failure after Windows restart |
|
|
When Apache is configured within the Windows Services UI to start automatically (or Automatically Delayed), Apache 2.4.39 fails to start automatically when Windows is restarted (via shutdown /r).
However, the Services UI is able to start 2.4.39 manually. Also, Windows does automatically start Apache 2.4.4 successfully after restart.
When Windows fails to start Apache automatically, the Apache error log does not contain any corresponding entries (even with Loglevel debug), and the Event Viewer contains the generic "Incorrect function" error.
Note: "apache -k install" seems to configure the Apache service startup to depend on two other services: "Ancillary Function Driver for Winsock" and "TCP/IP Protocol Driver" - removing these dependencies seems to allow Windows to start 2.4.39 automatically, but we're not sure whether this is a valid solution.
(FYI, we are using Windows Server 2012 R2 on a VM.) |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 08 Oct '19 9:54 Post subject: |
|
|
You can define that in the service properties
See https://i.stack.imgur.com/4XGev.jpg
Set the "Restaert Service after" to one minute. |
|
Back to top |
|
lhh995
Joined: 04 Oct 2019 Posts: 3
|
Posted: Tue 08 Oct '19 18:17 Post subject: |
|
|
thanks for your suggestion - succeeded once, failed once - continuing to investigate |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 09 Oct '19 11:25 Post subject: |
|
|
Anything in the apache error log? Anything in the windows event log? |
|
Back to top |
|
lhh995
Joined: 04 Oct 2019 Posts: 3
|
Posted: Wed 09 Oct '19 16:51 Post subject: |
|
|
Nothing new in either log. However, zero failures occurred in subsequent testing - we're cautiously optimistic that configuring all "failure" options as "Restart the Service" "after 1 minutes" on the Recovery tab of the service Properties in the Services UI seems to be our solution (without removing the two default dependencies). Thanks very much for your help. |
|
Back to top |
|
|
|
|
|
|