Can anybody offer any pointers as to how to upgrade php 5.1.2 to php 5.2.x on a Plesk VPS Ubuntu server.

Server details are:

Plesk 8.6.0

Ubuntu 6.06

Apache 2.0.55

Current php 5.1.2

Mysql 5.0.22

Not sure if any further information is required - any pointers would be gratefully received.

Thanks

link|improve this question
feedback

2 Answers

up vote 0 down vote accepted

You can upgrad it by compiling PHP from the source. Just determine with usual phpinfo() all the options for ./configure for default Plesk PHP and use it to compiling PHP from the source.

link|improve this answer
Thanks for the info Drew, just giving that a whirl at the moment. Everything seems to have run through OK on the make test so hopefully I should be on the home straight. – Simon Bennett Jan 21 '10 at 22:43
OK, make test came back with erros relating output buffering and ArrayObject::exchangeArray. Are you able to offer a solution to these. And once the make test has been run what final steps do I need to take to make this new version of php the current implementation. I restarted apache and the version is still showing as 5.1.2 – Simon Bennett Jan 21 '10 at 23:05
All sorted, had a couple of errors to get passed with Apache loading the module and some features but it's now running the up to date version. – Simon Bennett Jan 23 '10 at 12:34
feedback

You know what, there's still not a backport for PHP 5.2 in the official Dapper backports repo.

I would upgrade Ubuntu to the next LTS release, 8.04, if possible; most of the time it will Just Work (tm) in place, but a distro upgrade is an invasive procedure and should be tested on a similar system first.

Otherwise, you could try backporting your own packages from a repository like dotdeb, which may well drag in lots of other software you don't want; or installing from source, which is almost always more effort than the aforementioned dist-upgrade.

link|improve this answer
Thanks for the response. Bit of a newbie when it comes to this sort of thing. Would it not be possible to install and make the upgraded php package direct? – Simon Bennett Jan 19 '10 at 20:13
Do you mean, build it from source? – crb Jan 19 '10 at 21:36
Yes, could I download the source package and re-compile. – Simon Bennett Jan 19 '10 at 22:54
You could - you could even build your own backport by downloading the source from a newer Ubuntu release and compiling a .deb. That would be my recommendation - mixing source and packaged upgrades is always a bit of a nightmare. – crb Jan 20 '10 at 10:06
OK, thanks for the advice. – Simon Bennett Jan 20 '10 at 18:22
feedback

Your Answer

 
or
required, but never shown

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