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 : https://launchpad.net/~ondrej/+archive/php5 It's now on 5.4. If you want use this ppa do this: ppa:ondrej/php5
If you don't have add-apt-repository binary do the following:
Precautions: For Ubuntu 12.10Ubuntu 12.10's official repository is updated to php 5.4. You should use the main repository package if you can. To do this, just install php5 |
|||||||||||||||||||||
|
|
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!
|
|||||||||||||||||||||
|