If you get an error message now, then please do an update first and install the python-software-properties, that need to be necessary to add a package repository: sudo apt-get update sudo add-apt-repository ppa:ondrej/php5-oldstable
If Ubuntu says that you need to download a key first, then follow the instructions given in the notice. Add this package-repository to your system. There’s an excellent and (usually) hassle-free method to install the latest version of PHP 5.4 with 3 simple bash commands:ġ.
How to install/setup latest version of PHP 5.5 on Ubuntu 12.04 LTS (Precise Pangolin)Īnd now, let’s install the latest version of PHP 5.4