Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 need to update 5.2 to 5.3 in one of our servers urgently. My unix skills are limited so please be as specific as possible.

Is there any way to do this easily with apt-get upgrade ?

share|improve this question
I don't even say what Debian version you are using. – Sven Oct 19 '11 at 11:57
But I guess it must be Debian 5 (Lenny). In that case: No, there is no easy way to just upgrade PHP with apt. – Sven Oct 19 '11 at 12:03
Why not? There is an easy way. Upgrade from lenny to squeeze. Instructions are here:… But you have to read it on your own. – mailq Oct 19 '11 at 12:10
@mailq: I consider a distribution upgrade something that is never easy and certainly shouldn't be done without proper planning and testing (or just because someone urgently needs a new PHP version). And even while Debian updates are working relatively well most of the time, there is still the potential for major problems. – Sven Oct 19 '11 at 12:13
@mailq it's not a production server, but I guess being a smartass on the internet is more important that trying to be helpful – ooops Oct 19 '11 at 12:54
up vote 1 down vote accepted

There are instructions available that might work at

But you need to first have working backups in place. Best to test this on another install somewhere else to make sure there aren't any "gotchas", and if this is a production server and something goes wrong,...

Your support documentation is up to date, yes?

share|improve this answer

PHP 5.3 Packages can be sourced from:

  • for Debian 6.0 Squeeze : on the main Dotdeb repository
  • for Debian 5.0 “Lenny” : on

Follow the instructions using aptitude or plain old apt

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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