PHP Interpreter is not Installed (Linux)
Solution 1
You should install PHP. Your IDE is not responsible for that, you need to do it yourself.
See this site for instructions: http://community.linuxmint.com/tutorial/view/486
Update: Add PHP interpreter following: https://www.jetbrains.com/phpstorm/webhelp/enabling-php-support.html
PHP home could be set to /usr/bin on linux.
Solution 2
i did this
sudo apt-get install php5-dev
sudo apt-get install php-pear
sudo apt-get install php5-cgi
then add interpreter and php was under the /usr/bin
Comments
-
Evorlor almost 2 years
I am using PhpStorm on Linux Mint 16. I created a Hello World, but am struggling to run it. I am getting an error "PHP Interpreter is not installed. Press 'Fix' to edit your project configuration."
When I hit "Fix", I get:
Any ideas how to fix this? There are no Interpreter options.
-
Evorlor over 10 yearsThis did not resolve the problem. Some of it said the stuff was obsolete when I tried to download it. I think this (2 year old solution) is no longer valid.
-
Evorlor over 10 yearsAlso, I have already installed PHP (but did attempt to reinstall with those instructions).
-
TwilightSun over 10 years@Evorlor Well, I'm not familiar with mint. I always used RedHat or CentOS. The package names might changed, but it's about just the same steps.
-
TwilightSun over 10 years@Evorlor Maybe you can configure the interpreter path manually.
-
Evorlor over 10 yearsBy any chance do you know what that path would be?
-
TwilightSun over 10 years@Evorlor Try executing whereis php
-
Evorlor over 10 yearsphp: /usr/bin/php /usr/bin/X11/php /usr/share/man/man1/php.1.gz was the output, yet none of those are options while searching for an interpreter path. When I used usr/bin/X11, it just came up empty.
-
TwilightSun over 10 years@Evorlor I've seen people just put /usr/bin in the PHPHome field when adding a interpreter, have you tried that?
-
Evorlor over 10 yearsStill no interpreter there. :-/
-
TwilightSun over 10 years@Evorlor This is weird. I was able to discover an installed interpreter when adding an interpreter with PHP Home set as /usr/bin. That's all I can help, your issue seems quite strange to me.
-
Evorlor over 10 yearsI greatly appreciate your help! I came across this tutorial which helped out. We were barely off. Thanks for your time! You are awesoME! jetbrains.com/phpstorm/webhelp/enabling-php-support.html (Post this link in your answer please.)