Upgrade from php 5.3 to php 5.4.6 in lubuntu

Login to SSH terminal

Step1 : sudo apt-get install python-software-properties

Step 2 : sudo add-apt-repository ppa:ondrej/php5-oldstable

Step 3 : sudo apt-get update

Step4 : sudo apt-get install php5

Capture.