Upgrade PHP on a Linux Server
Print
This article will walk customers without a control panel through upgrading PHP using YUM.
- Connect to the Linux server via SSH using a program such as Putty.

Configure the YUM repository to look in the correct location for an upgraded PHP RPM. There are many different repositories online that offer upgraded RPMs for PHP so a quick search via Google will be of assistance. For this article we'll be referencing the YUM repositories at webtatic.comTell rpm to accept rpm's signed by webtaticrpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
Add the yum repository information to yumwget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo

Update the existing installation of PHP which will also update all of the other PHP modules installedyum --enablerepo=webtatic update php

Type Y <enter> and let the process complete.You can now see your current version of PHP using php –v from the shell prompt.
Was this answer helpful?