Re: php-fpm for Windows?

[email protected] ("Christoph M. Becker") Wed, 21 Dec 2022 14:50:50 +0100
Newsgroups php.internals.win
Message-ID <[email protected]>
On 20.12.2022 at 23:02, jorge hernandez wrote:

> Since HTTP2 sites that use PHP had to move from mod_php to php-fpm, whic=
h
> left Windows running PHP as FCGID,

Is that really the case?  While it looks like that mpm_prefork_module is
not compatible with mod_http2 (yet?), I couldn't find information about
mpm_winnt and mod_http2.

> well some extensions like
> uploadprogress don't work in FCGID, but as FPM, so can a php-fpm be
> created for Windows too?

A fast *process* manager would not make much sense on Windows; contrary
to POSIX systems, there is no fork(2) on Windows, so the process manager
would need to spawn worker processes, which would likely have the same
issues than the currently available FCGI SAPI (most notably, the need to
*re*-attach to OPcache SHM).  It might make sense to create a fast
*thread* manager SAPI for Windows, but that would have obvious drawbacks
(most notably, stability and security concerns) =E2=80=93 and of course, s=
omeone
would need to actually implement it.

=2D-
Christoph M. Becker