SSH php version not the same as Vagrant

Posted 3 months ago by mostafalaravel


when I run php version from the SSH vagrant :

php -v
PHP (cli) (built: Apr 10 2019 10:50:29) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache, Copyright (c) 1999-2018, by Zend Technologies
    with blackfire v1.24.4~linux-x64-non_zts71,, by Blackfire

but If I exit from the SSH :

php -v
PHP 7.3.2 (cli) (built: Feb  5 2019 23:16:38) ( ZTS MSVC15 (Visual C++ 2017) x86 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.2, Copyright (c) 1998-2018 Zend Technologies

What Im looking for is to downgrade php version to 7.1 (laravel 5.2)


on phpinfo() ; PHP verison is 7.3 !


Please sign in or create an account to participate in this conversation.