Ubuntu 12.04 (Precise Pangolin) and PHP 5.4 (again)

My previous post, Ubuntu 12.04 (Precise Pangolin) and PHP 5.4, has been extremely popular but I left some work for the user to figure out.

In a nutshell, here is how you install PHP 5.4 in Ubuntu 12.04 (Precise Pangolin).

1. Install the signing key for the PPA (which also adds the sources to apt):

If the above command is not available, install it using:

2. Now update the package database and then upgrade the system. As part of upgrading, PHP 5.4 will be installed automatically:

Now, you should have PHP 5.4 installed:

As an aside, at the time of my previous post, PHP Memcache packages were not available from the PPA but that has since been rectified.

1 thought on “Ubuntu 12.04 (Precise Pangolin) and PHP 5.4 (again)”

Comments are closed.