Ubuntu phpstorm: Interpreter not specified or not valid

I am setting up a debugger on phpstorm on Ubuntu. I could easily set the interpreter path correctly, like C:xampp/php , on Windows. But linux should have a different path for the interpreter.

Problem

I searched on this site a lot and on Google too, but could not get an answer. What should be the php interpreter path for phpstorm to recognize it, and therefore can I do debugging? Is nothing missing?

Thanks.

+7
php ubuntu phpstorm xdebug jetbrains
source share
3 answers

I think there was a misunderstanding. include path should point to the folder containing the PHP files, not the PHP interpreter!

Here you need to specify the address:

enter image description here

As pointed out in another answer, you can find the path to your PHP interpreter using which php or which php5 . Then you need to enter the path in the red box with number 2.

+9
source share

Not sure if this helps, but the default location for php5 executable on ubuntu is

 /usr/bin/php5 

PS: you can find out by typing a terminal

 which php5 

PS2: I installed xdebug using this wonderful article: http://blog.elenakolevska.com/debugging-laravel-on-homestead/ (this requires Homestad - Laravel Ubuntu for Vagrant, but maybe it will be useful for you too)

+1
source share

For Linux users, the Interpreter is not located in / opt / lampp / php . In fact, it is located in / opt / lampp / bin / php . Therefore, provide this directory for the CLI interpreter. This can be seen in the screenshot:

enter image description here

0
source share

All Articles