Upgrading your PHP to latest version

Posted under » PHP » Ubuntu on 24 May 2012

If you fear your are missing out or vulnerable to attacks, use this command. You must be SUDO.

apt-get update
apt-get upgrade

Then

apt-get install php5-common php5-suhosin

But never ever

apt-get upgrade php5-common

because what it does is find other upgrades and you might ended up upgrading everything including mysql which can mess things up.

Bear in mind, there might be some upgrade version headaches.

web security linux ubuntu GIT svn Raspberry apache mysql php drupal cake symfony javascript Ajax css