Ubuntu phpstorm : Interpreter is not specified or valid

Pratik picture Pratik · Aug 20, 2015 · Viewed 18.4k times · Source

I am configuring debugger on phpstorm on Ubuntu. I easily could set interpreter's path like C:xampp/php properly on Windows. But linux should have different path for interpreter.

Issue

I searched on this site a lot and on google too but could not get the answer. What should be php's interpreter path so that phpstorm recognizes it and thus i can do debugging? Anything missing??

Thanks.

Answer

Mehran picture Mehran · Aug 26, 2015

I think there's been a misunderstanding. include path should point to a folder containing PHP files, not PHP interpreter!

Here's where you need to set the address:

enter image description here

As the other answer pointed out, 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 numbered 2.