Re: [INTERNALS-WIN] RE: php-fpm for Windows?
[email protected] ("Christoph M. Becker") Wed, 28 Dec 2022 14:48:16 +0100
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
On 21.12.2022 at 20:25, Mario Brandt wrote: > I'm a member of ApacheHaus and ApacheLounge. Indeed there is only > winnt mpm on windows available. > mod_h2 for http/2 works with worker mpm, event mpm and winnt mpm. Good, and good to know. Thank you! > As mentioned right prefork does not work with mod_h2 since it does not > support threads. > > There is already a way to run php-fpm on windows- The php-cgi.exe has > the option. > > -b <address:port>|<port> Bind Path for external FASTCGI Server mode > > Within apache > > LoadModule proxy_module modules/mod_proxy.so > LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so > > I haven't tried that in ages (PHP 7.2). So it was either > > <Files ~ "\.php$"> > SetHandler "proxy:fcgi://127.0.0.1:9000#" > </Files> That works for me, but because I'm using Apache/2.4.39, I also needed to a= dd ProxyFCGIBackendType GENERIC for proper path resolution. However, this is not quite comparable to PHP-FPM which offers some additional features, besides that php-cgi -b is also available on platforms other than Windows. =2D- Christoph M. Becker