2

Why isn't WSGIDaemonProcess available on Windows?

Cœur
  • 37,241
  • 25
  • 195
  • 267
sequoia
  • 3,025
  • 8
  • 33
  • 41
  • Possible duplicate of [Why doesn't mod\_wsgi support daemon mode on Windows?](https://stackoverflow.com/questions/5364949/why-doesnt-mod-wsgi-support-daemon-mode-on-windows) – Piotr Dobrogost May 11 '18 at 14:49

1 Answers1

6

http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode

On the Windows platform there is no daemon mode only embedded mode. The MPM used on Apache is the 'winnt' MPM. This MPM is like the worker MPM on UNIX systems except that there is only one process.

Seems pretty clear. Need more information?

S.Lott
  • 384,516
  • 81
  • 508
  • 779
  • Thanks. I need to read up on the differences between embedded and daemon mode. I just learned through examples how to get multiple sites going in daemon mode. Now on windows, i was at a bit of a loss. Thanks for the link. – sequoia Jul 05 '11 at 17:34
  • 4
    FYI - the underlying reason Apache (and others) lack daemon features under Windows is due to Window's lack of an equivalent to the Unix `fork()` call, which Apache relies on. Not that it's impossible to replicate, it's just that the primitives Windows offers are so conceptually different that it'd massively alter how Apache's daemon features worked. To see why Apache didn't bother, see http://stackoverflow.com/questions/985281/what-is-the-closest-thing-windows-has-to-fork for details about cygwin's (hairy) attempt. – Eli Collins Jul 05 '11 at 18:55