Upgrade to PHP5.6

From Newroco tech docs
Jump to: navigation, search

Ubuntu 14.04 is staying with PHP5.5 despite it being end of life, and are intending to manually backport any security patches. As lots of PHP software is now dependent on PHP5.6 or later, you may need to upgrade to PHP5.6 manually by using the PPA of Ondřej Surý, a Debian PHP maintainer. First add his repository (you may need UTF support to make this work so the line to install that is included here:

  1. apt-get install -y language-pack-en-base
  2. LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php5

Then manually install 5.6 and restart apache:

  1. apt-get upgrade php5.6
  2. service apache2 restart

Depending on your application, you may need to manually upgrade other php components - just do

  1. apt-get install php5.6-<component>
for each needed (and restart apache afterwards)