Re:Microsoft Support of PHP on Windows
by siliconapex on Friday July 10, 2020 @02:12AM
(#23788667)
I always run it in a virtual machine when I'm developing on Windows or OS X.
[ Parent
| on HN ]
Shouldn't WSL do the trick? Especially with WSL2 I found no need to use a dedicated virtual machine to use Linux applications in Windows.
WSL2 _is_ a dedicated virtual machine for Linux on Windows. It runs under Hyper-V.
Re:Microsoft Support of PHP on Windows
by Already__Taken on Friday July 10, 2020 @07:17AM
(#23790320)
That was wsl1, wsl2 is much tighter integrated than just thinking of it as a VM running in hyper V.
WSL 1 was not a virtual machine. It was a re-implementation of the Linux kernel API within the Windows kernel. As such, it's probably more comparable to CoLinux (if that's still a thing).
It's not really about running linux applications as much as running your application in the same or similar environment to what you are ultimately deploying on.
Re:Microsoft Support of PHP on Windows
by siliconapex on Friday July 10, 2020 @05:58PM
(#23797029)
Exactly, I could run in WSL but I run in Docker or VirtualBox to emulate the production environment.