RE: php-fpm for Windows?

[email protected] (jorge hernandez) Wed, 21 Dec 2022 09:04:38 -0500
Newsgroups php.internals.win
Message-ID <[email protected]>
I have never tried mpm_winnt, but whatever makes sense I'm up for it.


-----Original Message-----
From: Christoph M. Becker <[email protected]>
Sent: Wednesday, December 21, 2022 8:51 AM
To: jorge hernandez <[email protected]>; [email protected]
Subject: Re: php-fpm for Windows?

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,
> which left Windows running PHP as FCGID,

Is that really the case?  While it looks like that mpm_prefork_module is no=
t
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 tha=
n
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, so=
meone
would need to actually implement it.

--
Christoph M. Becker