Php – How to upgrade PHP 5.2.0 on Debian Etch

debiandebian-etchPHP

How do I upgrade from PHP 5.2.0 to anything > PHP 5.2.3 on Debian Etch? Do I need to use backports (not quite sure how to do it)? I tried dotdeb.org, but they don't support Etch. I'd like to upgrade to the latest 5.3.*, but I will be content with anything > 5.2.3.

My current sources.list:

deb http://archive.debian.org/debian/ etch main

Many thanks for any insight.

EDIT:

For reference, this serverfault post was no help because of the dotdeb.org note I made above.

Best Answer

Debian Backports (for Etch) only has 5.2.0 anyway:

# apt-cache policy php5
php5:
  Installed: (none)
  Candidate: 5.3.6-11
  Version table:
     5.3.6-11 0
        800 http://mirrors.kernel.org/debian/ sid/main amd64 Packages
     5.2.0+dfsg-8+etch16 0
        500 http://archive.debian.org/debian/ etch/main amd64 Packages

I checked this by first adding the Debian Backports source to my list:

deb http://archive.debian.org/debian-backports/ etch-backports main

You should probably upgrade to Lenny or try to install Lenny's package, perhaps using APT pinning.

Related Topic