Install PHP 5.4 on Ubuntu 12.04 LTS

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:

If you get an error the add-apt-repository is not available on your system:

Et voila… your server is now running PHP 5.4, which is said to be 25% faster than PHP 5.3.

2 thoughts on “Install PHP 5.4 on Ubuntu 12.04 LTS”

Leave a Reply

Your email address will not be published. Required fields are marked *