How to Install PHP 5.4.4 using Remi Repository on CentOS 6.2

Share this Article :

In This post, I will show you on how to install the PHP 5.4.4 packages on CentOS 6.2 using Remi repository. PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML. PHP applications are commonly found with the filename extensions .php, .php4, or .php5. PHP does not included in CentOS 6.2 with minimum type of installation.

Prerequisites :
How to Install Remi yum Repository on CentOS 6.2 x86 and x86_64

Simply run the following command to install latest PHP packages :

[[email protected] ~]# yum install php -y
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * extras: centos.ipserverone.com
 * remi: rpms.famillecollet.com
 * remi-test: rpms.famillecollet.com
 * updates: centos.ipserverone.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.4.4-1.el6.remi will be installed
--> Processing Dependency: php-common(x86-32) = 5.4.4-1.el6.remi for package: php-5.4.4-1.el6.remi.i686
--> Processing Dependency: php-cli(x86-32) = 5.4.4-1.el6.remi for package: php-5.4.4-1.el6.remi.i686
--> Running transaction check
---> Package php-cli.i686 0:5.4.4-1.el6.remi will be installed
---> Package php-common.i686 0:5.4.4-1.el6.remi will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch             Version                        Repository             Size
====================================================================================================
Installing:
 php                    i686             5.4.4-1.el6.remi               remi-test             2.5 M
Installing for dependencies:
 php-cli                i686             5.4.4-1.el6.remi               remi-test             2.5 M
 php-common             i686             5.4.4-1.el6.remi               remi-test             874 k

Transaction Summary
====================================================================================================
Install       3 Package(s)

Total download size: 5.9 M
Installed size: 21 M
Downloading Packages:
(1/3): php-5.4.4-1.el6.remi.i686.rpm                                         | 2.5 MB     05:58
(2/3): php-cli-5.4.4-1.el6.remi.i686.rpm                                     | 2.5 MB     04:56
(3/3): php-common-5.4.4-1.el6.remi.i686.rpm                                  | 874 kB     01:39
----------------------------------------------------------------------------------------------------
Total                                                               8.0 kB/s | 5.9 MB     12:36
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : php-common-5.4.4-1.el6.remi.i686                                                 1/3

WARNING : These php-* RPM are not official Fedora/Redhat build and
overrides the official ones. Don't file bugs on Fedora Project nor Redhat.

Use dedicated forums http://forums.famillecollet.com/

  Installing : php-cli-5.4.4-1.el6.remi.i686                                                    2/3
  Installing : php-5.4.4-1.el6.remi.i686                                                        3/3

Installed:
  php.i686 0:5.4.4-1.el6.remi

Dependency Installed:
  php-cli.i686 0:5.4.4-1.el6.remi                 php-common.i686 0:5.4.4-1.el6.remi

Complete!

Check the php packages installed :

[[email protected] ~]# rpm -qa | grep php
php-common-5.4.4-1.el6.remi.i686
php-5.4.4-1.el6.remi.i686
php-cli-5.4.4-1.el6.remi.i686

Leave a Reply