ServerGrove Knowledge Base

Install / upgrade PHP using YUM and RPM packages


ServerGrove provides a YUM repository with the latest PHP versions packages in RPM. This makes dead simple to install and upgrade PHP. Follow these steps to setup the repository in your server and install/upgrade PHP:

Setup ServerGrove repository

If you have not installed the repository, download the RPM repository package from http://repos.servergrove.com/servergrove-rhel-6/x86_64/servergrove-rhel-6-repo-1.0.0-1.noarch.rpm and install it with:

rpm -i http://repos.servergrove.com/servergrove-rhel-6/x86_64/servergrove-rhel-6-repo-1.0.0-1.noarch.rpm

Installing PHP

To install PHP, run the following commands:

$ yum install php54 php54-apc

Install PHP Apache module:

$ yum install php54-mod_php

Upgrading PHP

To upgrade PHP, simple run:

yum upgrade

Configuration files and paths

The main installation is placed in /usr/local/php54 or /usr/local/php53. The configuration files are placed in /etc/php54 or /etc/php53.

PHP 5.3

If you want to install PHP 5.3, replace 'php54' with 'php53' in the package names.


comments powered by Disqus
Admin