Search code examples
phpcommand-line-interfaceversion

How to Change PHP Cli Version


I have Changed PHP Version 7.2 from cPanel however it's successfully changed. but when go to Putty (command line interface) and type

Php v-

it shows php version is 7.2 but Php-cli version 5.6

Php v-

PHP 5.6.40 (cli) (built: Apr 8 2019 15:39:30) Copyright (c) 1997-2016

The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend

Technologies


Solution

  • My case it was cPanel I had managed to fix by changing the PHP version.