php -v shows me this

PHP 5.5.9-1ubuntu4.19 (cli) (built: Jul 28 2016 19:31:33) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

I want to upgrade it to php 5.6.4

I am not sure for the solutions i found who had php 5.5.9deb versions.

  • what makes you not sure about the solutions you found ? Please give more details to give you a better answer to your question. – 0x0C4 Aug 24 '16 at 6:16
  • I just wanted to be sure that what i am doing is not just copy and paste but understanding the reason for it. – Samvedna Aug 24 '16 at 6:24

Found the answer here:

sudo apt-get -y update
sudo add-apt-repository ppa:ondrej/php
sudo apt-get -y update
sudo 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
php -v
| improve this answer | |
  • 1
    verified working as of star date: 2016 december 12 – Patoshi パトシ Dec 12 '16 at 7:05
  • I did this and the final command output: PHP 5.6.30-5+deb.sury.org~trusty+2 (cli) not 5.6.4 – NineCattoRules Feb 23 '17 at 12:06
  • Verified today: Ubuntu 14.04, php 5.5.4 > 5.6.30-7 – Jacksonkr Mar 7 '17 at 18:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.