I have a virtual server with PHP 5.1.6. How can I upgrade to PHP 5.3 using SSH?

Thanks in advance,

John

link|improve this question

0% accept rate
It depends on several aspects. What is your distribution/version? – Laurent Jan 12 '11 at 10:32
It sounds like you are running Red Hat Enterprise Linux or CentOS 5.5. See: serverfault.com/questions/221251/… – mattdm Jan 13 '11 at 14:46
feedback

3 Answers

Depending on the server operating system / linux flavour it might be as easy as: yum update php or apt-get install php

Be aware this will update you to the latest version of php not necessarily 5.3, also be aware this might break things to proceed with caution!

if your running a redhat based system you should also be able to find a PHP 5.3 RPM which you can install with rpm -uvh rpmname.rpm if you need a specific version of php that yum can't provide.

link|improve this answer
When I tried the yum update is said "yum: command not found" – John Jan 12 '11 at 10:36
in which case your probably not running a redhat based operating system try cat /etc/*-release and paste the result into your question. – Jona Jan 12 '11 at 10:46
feedback

download the new version of php and compile it.

link|improve this answer
feedback

Its depend in many things:

  • What distro you have.
  • What version of PHP you wont to use.
  • Is that necessary, because some php versions 2.2.x some functions.

After you decide, you can login to your server using either ssh client such as Putty, or from command line and follow steps.

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.