Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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. –  SvW 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. –  SvW Oct 19 '11 at 12:03
1  
Why not? There is an easy way. Upgrade from lenny to squeeze. Instructions are here: debian.org/releases/squeeze/i386/release-notes/… But you have to read it on your own. –  mailq Oct 19 '11 at 12:10
1  
@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. –  SvW Oct 19 '11 at 12:13
1  
@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

2 Answers 2

up vote 1 down vote accepted

There are instructions available that might work at http://www.debiantutorials.com/how-to-install-upgrade-to-php-5-3-on-debian-lenny/

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 php53.dotdeb.org

Follow the instructions using aptitude or plain old apt

share|improve this answer

Your Answer

 
discard

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.