I am trying to update to php 5.4 in Ubuntu 12.04, and I can only get 5.3.6 using official repositories (using apt-get).
I'm not really sure how to do a manual update – I'm sorta new to ubuntu, but I need to play around with the new php features!
You could use a ppa to stay up-to-date with php. I use :
It's now on 5.4. If you want use this ppa do this:
If you don't have add-apt-repository binary do the following:
For Ubuntu 12.10
|show 7 more comments|
It will take some time for PHP 5.4 packages to make their way into Ubuntu, as there are an awful lot of dependency checks to do. Ubuntu 12.04 is now in beta so I doubt they'll upgrade it to PHP 5.4 (although I have no official or inside knowledge of this) -- it probably won't appear until Ubuntu 12.10 in October this year. If you want it sooner than that, you'll either have to find a third-party package or learn to build it yourself from the source code.
Here's what I understand that you have to do (Type these commands in the terminal):
Someone asked about PPAs and Ubuntu ( What are PPAs and how do I use them? ), and they share how to add a repository line. Here's the repository line you need:
After all of this, just do the following two commands and you should be all set!
|show 1 more comment|