How can I change php-cli version on Ubuntu 14.04?

后端 未结 7 924
面向向阳花
面向向阳花 2020-12-04 09:41

I am new to using Linux and I broke some php settings while tampering.

If I execute a php script containing: phpinfo(); it shows the php versions as 5.

7条回答
  •  忘掉有多难
    2020-12-04 10:20

    Here is more interactive way:

    update-alternatives --config php
    

    You'll see the list of all available versions and select one of them

提交回复
热议问题