I installed PHP 5.6 on Ubuntu 14.04LTS using the following commands:
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get update
sudo apt-get install php5
But when I run the command php -v
I get the following response:
PHP 5.3.29 (cli) (built: Feb 3 2016 18:12:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
However, if I run the command php5 -v
I get the following response:
PHP 5.6.18-1+deb.sury.org~trusty+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
What did I do wrong?