Upgrade php4 to php5 on Debian

Started by ukgimp, June 06, 2011, 05:54:47 PM

Previous topic - Next topic

ukgimp

Jesus, how complicated.

I thought I could use a few command lines and it would know what dependancies to do etc

If i do

#apt-cache search php5

i get a  load of files, but how do i know whi ones to install.

This is an upgrade only.

Man this is hard.

ukgimp

Just doing a fresh backup now, but it can be as easy as:

sudo php5 apt-get install php5-cgi php5-cli

?

littleman

In theory apt-get should take care of all the dependencies.  Make sure you do an 'apt-get update' first to get a list of the latest packages.  It looks like the package "php5" is a meta-package that should install most of the server side dependents, and then install php5-cli to get the command line working.

ukgimp

What to do?

Trying to move from etch to lenny on debian, bu there are no longer support/source files for it so when I go to update aptitide it fails.

Any ideas as what to do if a distro is no longer supported?

cheers

littleman

Is this a server or a home computer?

I've recently updated a computer that had etch on it, but it was a lot of work.  Virtually the entire system had to be upgraded and there were massive dependency issues.  One thing about Debian is that you can't let it sit too long without updating or you could be left behind.

You could point your apt list to:
deb http://archive.debian.org/debian etch main contrib non-free

That's the archive for etch and it still should work for you.

Your other options are to either save your work and do a new install, or try to compile php5 yourself.  Compiling php5 and Apache to work with it is probably easier than getting out of etch at this point.

ukgimp

Server. With live sites on. Hence my caution.

littleman

I would not try to do the upgrade via apt then.  Probably your best move is to move everything to a temp server, upgrade the server with a fresh install and then move the sites back over.