skip to Main Content

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

2

Answers


  1. Chosen as BEST ANSWER

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


  2. use the below command

    update-alternatives –config PHP

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search