how to add php5.6 mbstring extension in centos 6.8

April 04, 2017, at 5:47 PM

My terminal shows php version as [root@localhost modules]# php -v PHP 5.6.25 (cli) (built: Oct 21 2016 17:57:17) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies and when i check for mbstring extension for php with php -m command i get

but when i check with yum list installed php* i get this php-mbstring.x86_64 5.6.30-1.el6.remi @remi-php56

when i check with phpinfo() i get result as
1) i get related result in Additional ini file parsed section as

i try with new installation of php56w-mbstring also then also same problem.

Answer 1
Its small mistake here... 
In my setup there are two version for php 
1)php with apahce and
2)php cli 
[root@localhost modules]# which php
[root@localhost modules]# find / -name php.ini
here i select /etc/opt/rh/rh-php56/php.ini and after this check for mbstring in terminal by i fine file
[root@localhost modules]# find / -name
with gedit /etc/opt/rh/rh-php56/php.ini i added that extension and related path with it as
after that check with 
php -m 
now i get mbstring with this command.
Answer 2


1/ find which php command is used:

which php

2/ find which package provides this command

rpm --query --file $(which php)

If this fails, this probably means you are using a manually installed PHP version, built from sources, usually in /usr/local.


As, in your case php is provided by rh-php56-php-cli, you need to install needed extensions, from the same repository (centos-sclo) and in the same namespace (rh-php56):

yum install rh-php56-php-mbstring
Prestashop 1.6 Webservice Order

Prestashop 1.6 Webservice Order

I'm trying to finish my custom module to import clients, addresses, carts and orders from a webservice

Uploading file using PHP Curl to another server

Uploading file using PHP Curl to another server

I am trying currently to accomplish the following:

PDO connections to old MySQL servers

PDO connections to old MySQL servers

I'm pretty sure the answer is no but I really want to be 100% sure

Add class with jquery to ajax form

Add class with jquery to ajax form

help me please with my formI have ajax form here https://dev