How to Install PHP 5.4.4 using Remi Repository on CentOS 6.2

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 :

[root@centos62 ~]# yum install php -y
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * remi:
 * remi-test:
 * updates:
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
 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

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

  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


Check the php packages installed :

[root@centos62 ~]# rpm -qa | grep php
Leave a Reply

Your email address will not be published. Required fields are marked *

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.


* up to 30 days money back guarantee