What is the possibility of running it on Windows? #420
Replies: 6 comments 4 replies
-
I spent a lot of time working this out in #83 a while ago. PHP builds Windows ZTS builds, but we'd need to compile them from scratch (to add some build flags. I'd have to dig through my notes to know exactly which ones). It is quite a journey, but I'm sure it is possible. To compile a Windows binary of FrankenPHP, we would also need to compile a custom PHP binary and distribute both together with any extensions (as I'm not sure the prebuilt extensions for Windows will be compatible). If we would need to also distribute extensions, I'm not sure it will be feasable. I never got it to work, primarily due to not having a deep understanding of the Windows C build chain, caddy, Frankenphp, and Go in Windows. My knowledge of Caddy and Frankenphp has grown massively over the last year, but I still need to gain a basic understanding of how to build PHP in Windows. If anyone has this knowledge and wants to work together to figure out how to get Frankenphp working in Windows, I'd love to hop on a zoom call (or discord, or whatever) and figure this out. |
Beta Was this translation helpful? Give feedback.
-
Hello :) I gave some attempts earlier, mainly for the static build of php on Windows. This is not supported at all by the build scripts (blame me, we did not consider it as relevant back then when I rewrote the whole thing for 5.3+). So far I can build the libphp as static lib (and the default extensions when using --dsiable-all), but there are other issues with the symbols. I think it is better to build the SAPI statically linked to the libphp and the extension, instead of libphp having the extension statically linked. I will try more :) Also it may be good to also first get the SAPI built (that should not be a big issue). and work (no idea if there are specific unix-like features we need to emulate, but as it is used by go, that should work but the thread-mutex lib) as DLL first.
It will help a lot to deal with the static build of PHP on windows (which is quite a tasks as many extensions needs some patching for minit/mshutdown etc to avoid wrong init/shutdown and other shared mem bugs). |
Beta Was this translation helpful? Give feedback.
-
This may be huge step forward for Windows support: crazywhalecc/static-php-cli#292 |
Beta Was this translation helpful? Give feedback.
-
Any progress? |
Beta Was this translation helpful? Give feedback.
-
static-php-cli supports Windows in latest releases. |
Beta Was this translation helpful? Give feedback.
-
#880 Maybe I should move it here. |
Beta Was this translation helpful? Give feedback.
-
What is the possibility of running it on Windows?
I have a use case where I need, in some cases, to have PHP servers on Windows due to the clients' own structure.
I really liked the project and I would like to know if this possibility exists and if this is in the plans or if you could give me an initial push with tips on how to get there, I am interested in helping to make this possible.
Beta Was this translation helpful? Give feedback.
All reactions