Upgrade PHP on a Linux Server

This article will walk customers without a control panel through upgrading PHP using YUM.

  1. Connect to the Linux server via SSH using a program such as Putty.
  2. 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.com
  3. Tell rpm to accept rpm's signed by webtatic
  4. rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy

  5. Add the yum repository information to yum
  6. wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo

  7. Update the existing installation of PHP which will also update all of the other PHP modules installed
  8. yum --enablerepo=webtatic update php

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

Related Articles

Installing htop

htop is an interactive process viewer for Linux, which is a powerful alternative to the...

Bind Multiple IP Addresses to a Single Network Interface Card (NIC)

This tutorial demonstrates how to bind multiple IP addresses to a single NICI'll be using LAN...

Clear Memory Cache on Linux Server

By default the Linux OS has a very efficient memory management process that should be freeing any...

Set the time on a Linux server

Log into the server via SSHAt the shell prompt run the following command:date MMDDHHmmYYYYFor...

Check your disk usage in Linux

A good way to check your disk usage for folders on your Linux server is via shell.Download...