Answer the question
In order to leave comments, you need to log in
How to develop in PHP on Windows 10 with WSL?
Windows 10 has WSL - Built-in Linux. Is it suitable for full-fledged development under Windows or is it a crutch?
Some time ago I tried to set up the whole thing, I ended up putting everything I needed there and everything even started, but the question arose how can I open /var/www/mylocalsite in PhpStorm on Windows. More precisely, I opened it, and then there were big problems, either the files were not deleted or modified through a storm, or they were not deleted or modified via WSL. In general, I then spat on everything and did not begin to understand further.
Does anyone work through WSL?
Answer the question
In order to leave comments, you need to log in
WSL support has been added to PhpStorm 2019.3 EAP#7. The project is spinning in wsl or in docker wsl. Files are edited in a storm
Personally, I installed IIS in the Windows components, put https://www.microsoft.com/WEB/downloads/platform.aspx in it, and then put PHP 7.3 in the IIS console. Then I installed composer, mysql (including Workbench for graphical administration), git, nodejs, then VS Code (you get phpstorm here) and that's it, I'm developing under windows. The only thing - it is necessary to issue rights for IUSR to the folder with the project.
Install Docker, connect normal lamps and don't torture the animal.
You need to configure deploy in PhpStorm so that your project is synchronized with WSL, for this you need to map the \\wsl$ network drive. Docker in WSL 2 is as fast as it is in Linux, as long as there are only problems between the Windows and WSL filesystems.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question