This is just a test to make sure X11 is working. In the WSL2 terminal export DISPLAY=$(awk '/^nameserver/ ' to exit.You can re-enable it after you get everything working. Temporarily disable your Windows firewall.Obviously you can use another X11 server, but this is the one I’ve used.
#Phpstorm wsl2 install#
#Phpstorm wsl2 windows 10#
I tested these approaches on an 8GB Windows 10 Home VM with Docker 2.3.0.3 and DDEV-Local v1.14.2 and the Ubuntu 20.04 distro. We’ll walk through both of these approaches. PHPStorm works fine this way, but it’s yet another complexity to manage and requires enabling X11 (easy) on your Windows system. Enabling X11 on Windows and running PHPStorm inside WSL2 as a Linux app.Running PHPStorm in Windows as usual, opening the project on the WSL2 filesystem at \\wsl$\ PHPStorm is slow to index files and is slow to respond to file changes in this mode.However, it is possible right now to use PHPStorm with DDEV-Local on WSL2 in two different ways:
#Phpstorm wsl2 code#
The performance is incredible (on a par with native Linux installations) and the WSL2 command-line environment is fresh and clean.Īs noted in the WSL2 blog article, Visual Studio Code is doing great with WSL2, but PHPStorm is lagging a bit behind. WSL2 with DDEV-Local is a wonderful new world for Windows developers.