Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently running PHP 5.4.9 on Ubuntu 13.04 and I want to upgrade to 5.5 because of the new password_* library and other features. What is the easiest and least painful way to upgrade?

share|improve this question

closed as off-topic by Christopher Perrin, mdpc, faker, Falcon Momot, Tom O'Connor Aug 25 '13 at 22:37

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is a site dedicated to professionals; novice questions are off-topic. Please see the Help Center for more information on topicality. The best advice we can give you is to hire a professional to help you out." – Christopher Perrin, mdpc, Tom O'Connor
If this question can be reworded to fit the rules in the help center, please edit the question.

is your current installation installed from source or from yum? if installed from source you can use config.nice to keep the same options when compiling – user16081-JoeT Aug 23 '13 at 21:28
i installed using tasksel – Programit Aug 23 '13 at 21:45
Maybe include what research you've done into upgrading and what you've tried, and what errors you've come across. – Drew Khoury Aug 24 '13 at 4:46

Unfortunately, there's no easy and painless way to upgrade now. You installed from the official sources, and it's definitely easiest to stick with them.

General ways to get an updated version are:

  • Wait for the next release.
  • Use the version from backports. Unfortunately, PHP 5.5 is not available on raring-backports yet (
  • If you're not running a production site, one option is to manually download and install the packages from the next version - in this case, saucy (13.10; it appears that saucy has the newer version: But this won't be kept up-to-date with newer versions, may have dependencies, won't get security support until saucy is officially released, and (worst-case) may not work at all on raring (13.04).
  • Add the saucy repositories and use apt-pinning to ensure that you only upgrade the php5 package (and dependencies). This isn't easy, IMO, and doesn't give you security updates.
  • Install from source. But then you have to either install a non-packaged version or build your own packages. Then you get the version you want, but this isn't easy like installing a package, nor does it take the pain out of later upgrades.
share|improve this answer
Thanks for this, I think I will stay with 5.4.9, and use - password_* functions that are compatible older versions. – Programit Aug 24 '13 at 6:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.