L
L
levykkn2021-11-12 01:08:48
phpstorm
levykkn, 2021-11-12 01:08:48

How to put the php interpreter in PhpStorm of the version I need?

618d9410c194c171721680.png
618d9420bbaf9711087811.png
In the terminal it shows version 8, in phpstorm 7.3. How to install version 8 in phpstorm?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2021-11-12
@levykkn

In order for the PHPStorm interpreter to work correctly, you need to specify the full path to the interpreter. This can be done in two ways:

  1. Specify the path /usr/bin/phpand change the symlink ($PATH) to the new PHP version.
  2. Use full path to php8 interpreter. For example /usr/bin/php8.0, /usr/local/Cellar/[email protected]/7.4.16/bin/phpetc. Your path may be different.

To find out the path of the current interpreter, you can run the command:
$ which php
: /usr/bin/php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question