• Homepage
  • >
  • HowTos
  • >
  • How to install PHP 5.5.36 & PHP 5.6.22 on Ubuntu 16.04

How to install PHP 5.5.36 & PHP 5.6.22 on Ubuntu 16.04

  • by
  • 12 Months ago
  • 0

PHP 5.5.36 & PHP 5.6.22 both recently released, is a popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.

php 5

PHP 5.5.36 Changelog

  • Core:
    • Fixed bug #72114 (Integer underflow / arbitrary null write in fread/gzread). (CVE-2016-5096)
    • Fixed bug #72135 (Integer Overflow in php_html_entities). (CVE-2016-5094)
  • GD:
    • Fixed bug #72227 (imagescale out-of-bounds read). (CVE-2013-7456)
  • Intl:
    • Fixed bug #72241 (get_icu_value_internal out-of-bounds read). (CVE-2016-5093)
  • Phar:
    • Fixed bug #71331 (Uninitialized pointer in phar_make_dirstream()). (CVE-2016-4343)

PHP 5.6.22 Changelog

  • Core:
    • Fixed bug #72172 (zend_hex_strtod should not use strlen).
    • Fixed bug #72114 (Integer underflow / arbitrary null write in fread/gzread). (CVE-2016-5096)
    • Fixed bug #72135 (Integer Overflow in php_html_entities). (CVE-2016-5094)
  • GD:
    • Fixed bug #72227 (imagescale out-of-bounds read). (CVE-2013-7456)
  • Intl:
    • Fixed bug #64524 (Add intl.use_exceptions to php.ini-*).
    • Fixed bug #72241 (get_icu_value_internal out-of-bounds read). (CVE-2016-5093)
  • Postgres:
    • Fixed bug #72151 (mysqli_fetch_object changed behaviour).

Install PHP 5.5.36 & PHP 5.6.22 on Ubuntu 16.04 (Xenial Xerus), Ubuntu 15.10 (Wily Werewolf), Ubuntu 15.04(Vivid Vervet), Ubuntu 14.04 (Trusty Tahr)

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

For PHP 5.5.36

sudo apt-get install php5.5

For PHP 5.6.22

sudo apt-get install php5.6

To verify the version installed, run the following command:

sudo php -v

If you want to remove PHP installed, then run the following commands:

sudo apt-get update

sudo apt-get purge php5-common -y

sudo apt-get --purge autoremove -y
  • facebook
  • googleplus
  • twitter
  • linkedin
  • linkedin