parliner.blogg.se

Phpstorm wsl2
Phpstorm wsl2




Make sure that the path in zend_extension is the one we obtained in the previous step.

phpstorm wsl2

We go to the Apache2 directory and edit the file php.iniAdd the following lines at the end. Next, we are going to look for our file php.ini. In my case, I was in /usr/lib/php/20190902/xdebug.so. First you have to locate the xdebug.so: cd usr/ Now comes an important step to perform the xDebug integration with PHPStorm on Windows. Works like a charmander!Īnd where does this go? Well, where our server is installed, in this case in our Ubuntu distribution: sudo apt install php-xdebugĪfter installation, start or restart the Apache server ( sudo service apache2 start Or sudo service apache2 reload) and executes php -v. When you have Git installed on WSL2, PHPStorm itself (VSCode does it too) integrates seamlessly with the Linux binary. You can also raise consoles, run queries, examine the data, modify it. In that button, add the project database and you will be able to access it directly, without having to use any other intermediate program. All you have to do is add a new connection: If you have never used it before, the PHPStorm Database panel provides you with direct access to the database server. I also like to check Copy to clipboard on selection and Paste on middle mouse button click in Ubuntu style.In the Shell path field we only have to select the executable of the terminal, which is in C:\Windows\System32\wsl.exe.Go to File > Settings > Tools > Terminal.For this reason, I always like to integrate the Ubuntu console in the terminal, to have direct access to the terminal without leaving the application.įor it, inside PHPStorm, we follow the following steps: Something that motivates me a lot is the amount of tools and panels that PHPStorm provides you without leaving the application. If you already have version 2004 or higher installed, you only have to open a project in PHPStorm indicating the WSL path where the files of your project are. If this is not the case, check how to the WSL2 runtime requirements and upgrade your version of Windows with the Windows 10 Upgrade Assistant. Integration is easy, as long as you have upgraded Windows 10 to version 2004 or higher. Sudo apt install git PHPStorm Integration If not, we can install it with sudo apt update If you get something like git version 2.25.1

phpstorm wsl2

To check it, launch in the Ubuntu console git -version If we have installed an Ubuntu distribution, it should be installed by default. But this shouldn't be a problem, because any modern IDE already integrates with WSL2. Important: as you may remember, Windows and WSL have separate file systems and for now WSL does not natively support running GUI applications. If you know it and don't use it, start using it as soon as possible. WP-CLI, if you don't know it, you should.xDebug, the primary tool that every developer should use to debug their PHP code.PHPStorm, the best IDE for PHP development, whatever they say.Git, the world-renowned version control system.To continue we are going to focus on the integration of some very necessary tools for WordPress development, which are: If you haven't done it yet, you're already late.Īt this point we are already running our Apache server with its PHP and MariaDB database server. If you have reached this point, you have already completed the part 3 on the WordPress for Windows development guide with WSL.






Phpstorm wsl2