PHP Interpreter is not Installed (Linux)

13,679

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

Share:
13,679
Evorlor
Author by

Evorlor

Hello.

Updated on June 06, 2022

Comments

  • Evorlor
    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."

    enter image description here

    When I hit "Fix", I get:

    enter image description here

    Any ideas how to fix this? There are no Interpreter options.

  • Evorlor
    Evorlor over 10 years
    This 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
    Evorlor over 10 years
    Also, I have already installed PHP (but did attempt to reinstall with those instructions).
  • TwilightSun
    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
    TwilightSun over 10 years
    @Evorlor Maybe you can configure the interpreter path manually.
  • Evorlor
    Evorlor over 10 years
    By any chance do you know what that path would be?
  • TwilightSun
    TwilightSun over 10 years
    @Evorlor Try executing whereis php
  • Evorlor
    Evorlor over 10 years
    php: /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
    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
    Evorlor over 10 years
    Still no interpreter there. :-/
  • TwilightSun
    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
    Evorlor over 10 years
    I 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.)