How to change PHP Interpreter PhpStorm terminal

Hello!

I have created an application in Laravel v8 and it requires PHP v7.3. I am using Laragon and I have PHP v7.4.0 installed.

When I run php -v from terminal, I get a correct display of the currently installed PHP version:

PHP 7.4.0 (cli) (built: Nov 27 2019 10:14:18) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

yet when I run the same command from the PhpStorm's terminal.. eh.. I get this:

PHP 7.2.19 (cli) (built: May 29 2019 13:58:59) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

I have uninstalled everything "Microsoft Visual C++ redistributable" packages, I have added the path to the php v7.4.0 directory to PATH, I have configured the PHP interpretor to use v7.4.0 yet PhpStorm keeps using that v7.2.19 which I have no idea where it founds it since it's been more than a year since I have deleted any installation of PHP & Apache I had at that time..

This is driving me insane...

I would appreciate any pointers where to look and delete any reference to the php v7.2.19 so PhpStorm will make use of the v7.4.0.

 

TIA

 

 

0
3 comments
Avatar
Permanently deleted user

I got it... Laragon stored some other versions of PHP and once I've deleted those the PhpStorm's terminal show the correct php version.

1

Hi but this is not a good solution what if I need the two versions to be there?

PHPStorm any other solutions?

0

Please sign in to leave a comment.