If you use php web applications then your know a lot are now demanding to be updated to php 5.4 or higher. To do this in Ubuntu 12.04LTS simply do the following…
If you haven’t already used ppa then you will have to first install python software properties, make sure you’re the root user… ( sudo bash )
apt-get install python-software-properties
PHP 5.4.x run:
add-apt-repository ppa:ondrej/php5-oldstable
PHP 5.5.x run:
add-apt-repository ppa:ondrej/php5
Once you’ve added the repo simply update and upgrade current packages & distribution packages with one simple command :)
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y