How do I go about upgrading from PHP 5.1.6 to 5.3? I just got a virtual server with Plesk on it and am a newbie with linux/apache/plesk.

link|improve this question

25% accept rate
What OS is your VPS running on? – Oldskool Jan 20 at 9:11
CentOS (I think) – chris Jan 20 at 9:22
Try cat /etc/redhat-release. If it exists, it'll tell you what version of CentOS you'll have (and if you have it at all :)). – Oldskool Jan 20 at 9:24
CentOS release 5.5 (Final) – chris Jan 20 at 9:28
did you get this solved ? – mcgrailm Jan 25 at 17:14
feedback

migrated from stackoverflow.com Jan 20 at 13:05

This question came from our site for professional and enthusiast programmers.

6 Answers

If you don't have any php install already, you can do

yum -y install php53
link|improve this answer
what does -y do ? – mcgrailm Jan 24 at 17:31
it automatically answers yes to any questions – ckliborn Jan 24 at 19:08
ohh cool i still can't get it upgraded – mcgrailm Jan 24 at 19:47
feedback

ok so I figured out how to upgrade it !

IN PLESK 10!

task & settings -> panel -> updates and upgrades

then at the top of the page there is a button "Updates source and installation settings" click on that

then very important!

change the menu option "Download installation files from" to "Official Parallels Updates Server"

click save

then click "add components" button

you will the be given a list of of options and you should see PHP5.3 support

then click "continue"

and your done !

easy ; ^ )

link|improve this answer
feedback

Via SSH you can just

sudo yum update php

I believe plesk should just be able to keep up on what php version you are running but not 100% sure.

link|improve this answer
feedback

I believe that 5.3 is not the default version for Centos 5.5 - indeed, looking at a nearby Centos mirror it uses 5.1.5 but provide 5.3 under a different package name (php53). I suspect that trying to run both packages concurrently will cause problems. So I guess the solution would be to remove the current PHP packages and install the php53 packages - or upgrade the entire OS to Centos 6 (erk!).

Centos is essentially a clone of RedHat Enterprise Linux - which has a parallel open development project called Fedora: if you can't find documentation on package management using yum on Centos, then have a look at the RHEL and Fedora docs.

Don't try to do any of this using Plesk.

link|improve this answer
feedback

Plesk do not ship PHP as it’s integrated part, you have to upgrade php outside plesk and plesk won't provide support on it.

Atomic channel create an script to upgrade the php.

You can get the details from the link.

Using atomic channel script you can upgrade the php in plesk

link|improve this answer
i get errors when i try their method – mcgrailm Jan 24 at 17:32
feedback

You should upgrade to plesk 10 which includes php 5.3 by default. The latest auto installer also has an option to upgrade php to 5.3. You can find the auto installer at /usr/local/psa/admin/bin/autoinstaller.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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