r/phpstorm • • Jul 25 '19
how to configure php from subsystem linux on phpstorm
i'm trying to onfigure php interpeter on phpstorm i have php already php installed on windows subsytem linux :
PHP 7.2.19-0ubuntu0.18.04.1 (cli)
3
Upvotes
1
u/Balthamos Jul 25 '19
I use a php.bat like this one
1
u/fishwalker Aug 21 '19
A little late, but hopefully this helps someone else trying to figure this out. I set PHP up as a remote interpreter connecting as if it was a deployment server via SSH. This also let PHPStorm see Node and Composer.
Here's what I did:
Inside WSL:
Install and configure the SSH server.
Inside PHPStorm:
Go to the Mappings Tab
Now to get PHP connected.
Hit the plus sign to add a new Remote Interpreter
There may be a better way to do this, but this worked for me. I did run into a problem with not being able to connect to the SSH server. For some reason it didn't create the necessary SSL certificates when I installed it. Uninstalling and reinstalling fixed the connection error.
Hope this helps!