I’m running Windows 10, with a WSL2 Ubuntu instance. I do my development within the WSL2 instance with the “Remote – WSL” extension of Visual Studio Code. So my VSC is running as a WSL2 application, not as a Windows application. I have an additional remote server (I’ll refer to this as “Server X” which actually hosts/runs the PHP code.
Tag: wsl-2
php -S randomly not working: localhost refused to connect [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I am using WSL2 with ubuntu 20.04 with php 7.4.3 installed on it.
Issues when Debugging PHP in VSCode using Docker and WSL2
I’ve been working with VSCode + Docker in Windows for some years now, and managed to have a fully working dev environment without any issues. Recently i setup a new development environment with WSL2. Moved all my projects, libraries, CLIs, etc, into WSL, using Docker Windows with WSL2 containers and VSCode on Windows with remote connection to WSL. Everything is