Ubuntu phpstorm : Interpreter is not specified or valid

送分小仙女□ 提交于 2019-12-03 12:04:14

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:

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.

Not sure if it helps, but default place for php5 executable on ubuntu is

/usr/bin/php5 

PS: you can find out it by typing in a terminal

which php5 

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

For Linux Users, the Interpreter is not located into /opt/lampp/php. In fact it is located in /opt/lampp/bin/php. So provide this directory for the CLI interpreter. It can be seen in Screenshot:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!