I need help in installing php 5.6.5 in my ubuntu 16.04 for my Magento 2.1 website.
I tried installing php through these commands:
sudo apt-get -y update
sudo add-apt-repository ppa:ondrej/php
sudo apt-get -y update
apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip
But when i do php -v
it gives me this version:
PHP 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Is there a way to upgrade 5.6.30 to 5.6.5?
Thanks!