W
W
WebDev2019-08-07 14:03:11
PHP
WebDev, 2019-08-07 14:03:11

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

4 answer(s)
E
Evgeny Bukharev, 2019-11-07
@evgenybuckharev

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

A
Anton Anton, 2019-08-07
@Fragster

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.

T
ThunderCat, 2019-08-07
@ThunderCat

Install Docker, connect normal lamps and don't torture the animal.

W
WolfWalker, 2019-09-05
@WolfWalker

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 question

Ask a Question

731 491 924 answers to any question