0

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

Thanks in advance,

John

2
  • It depends on several aspects. What is your distribution/version? Commented Jan 12, 2011 at 10:32
  • It sounds like you are running Red Hat Enterprise Linux or CentOS 5.5. See: serverfault.com/questions/221251/… Commented Jan 13, 2011 at 14:46

3 Answers 3

2

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.

2
  • When I tried the yum update is said "yum: command not found" Commented Jan 12, 2011 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. Commented Jan 12, 2011 at 10:46
0

download the new version of php and compile it.

0

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.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.