Upgrade PHP version in Ubuntu 14.04 LTS

To run new applications, like laravel, we need to upgrade our system. so, to update php version, follow below given steps.

  • sudo apt-get dist-upgrade
  • sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
  • sudo apt-get update
  • sudo apt-get install php7.0 #for php 7
  • sudo apt-get install php5.6 #for php 5.6
  • sudo apt-get install php-xdebug php-apcu
  • php -v (to see the new version installed in your system)


Leave a Reply

Your email address will not be published. Required fields are marked *