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.
When you do the apt-get upgrade, you may get a message stating that certain packages have been kept back. You can resolve this by running the following command:
After that, you’ll want to run apt-get upgrade again. For more information, check out the following site:
http://www.debian-administration.org/articles/69
Hi Nate,
Tnx for your reply… you are right 🙂
Also: This is the way to install new Kernels on your system… which is now a hot topic btw, due to: http://www.reddit.com/r/netsec/comments/1eb9iw/sdfucksheeporgs_semtexc_local_linux_root_exploit/