Activities

September 2015
M T W T F S S
« Aug   Nov »
 123456
78910111213
14151617181920
21222324252627
282930  

How do I enable mbstring on RedHat 6.4 (Santiago)

I was trying to setup PMA access on one the RedHat server I have. When I execute the command #yum list php*. it does not list php-mbstring package and showing very limited packages. I tried google and found that to enable EPEL and REMI repository to install remaining php extensions. But neither of the attempts were work yet.

After few hours of searching solutions, i found one blog has posted similar issues and it’s solution. To install php-mbstring and other optinal PHP extensions from RedHat repository, we need to enable one of the another repository from RedHat. But you may needed Redhat subscription user name and password to do that. I have given redhat support user name and password.

Command to enable other php extensions in RHEL 6.4

 #rhn-channel --add --channel=rhel-x86_64-server-optional-6

Here are my install steps,

[root@web01 ~]# rhn-channel --add --channel=rhel-x86_64-server-optional-6
Username: support@voxel.net
Password:
[root@web01 ~]# yum install php-mbstring
Dependencies Resolved
=========================================================================================================================
 Package                  Arch               Version                     Repository                                 Size
=========================================================================================================================
Installing:
php-mbstring             x86_64             5.3.3-46.el6_6              rhel-x86_64-server-optional-6             460 k
Updating for dependencies:
 php                      x86_64             5.3.3-46.el6_6              rhel-x86_64-server-6                      1.1 M
 php-cli                  x86_64             5.3.3-46.el6_6              rhel-x86_64-server-6                      2.2 M
 php-common               x86_64             5.3.3-46.el6_6              rhel-x86_64-server-6                      529 k
Transaction Summary
=========================================================================================================================
Install       1 Package(s)
Upgrade       3 Package(s)
Total download size: 4.3 M
Is this ok [y/N]:

How do I verify the extension is enabled

[root@web12 yum.repos.d]# php -m | grep “mbstring”
mbstring
[root@web12 yum.repos.d]#

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>