How can I install PHP 5.5 on Ubuntu? [duplicate]

How can I replace PHP 5.3 with PHP 5.5 on Ubuntu 12.04? I searched with Google and failed to find a repository.


Solution 1:

You can use my PPA with PHP 5.5: https://launchpad.net/~ondrej/+archive/php5

Solution 2:

I could not find PPA for 5.5 (and rightly so) so I think either you wait or build it yourself. Instruction to build yourself are found here However, if you like, few PPAs for PHP 5.4 exists if that can be compromise.

Checkout these:

https://launchpad.net/~ondrej/+archive/php5

https://launchpad.net/~nathan-renniewaldock/+archive/ppa

*EDIT*

The ppa:ondrej/php5 now contains PHP 5.5. PHP 5.4 has been moved to ppa:ondrej/php5-oldstable. So you have what you want!