This post shows you how to install PHP 5.4 on Ubuntu 12.04 LTS.
To install PHP 5.4, I asked my good friend Google who is maintaining a PHP PPA (Personal Package Archive) for Ubuntu 12.04 LTS.
Ondřej Surý is one of the people who does this. Since Ondrey is pretty active on developing this stuff, this is one of the repo’s to follow 🙂 (he also accepts donations for his hard work)
Now, via SSH, you can simply install PHP 5.4 by isuing the following command:
1 2 3 |
sudo add-apt-repository ppa:ondrej/php5 sudo apt-get update sudo apt-get upgrade |
If you get an error the add-apt-repository is not available on your system:
1 |
sudo apt-get install python-software-properties |
Et voila… your server is now running PHP 5.4, which is said to be 25% faster than PHP 5.3.