Ssh – Using SSH to upgrade from PHP 5.1.6 to PHP 5.3

PHPssh

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

Thanks in advance,

John

Best Answer

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.