alioygur alioygur - 8 months ago 66
PHP Question

How to install PHP mbstring on CentOS 6.2

How do I install mbstring with PHP on CentOS 6.2

I've tried:

$ sudo yum install php-mbstring

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base:
* extras:
* updates:
Setting up Install Process
No package php-mbstring available.
Error: Nothing to do

But no packages were found?


do the following:

sudo nano /etc/yum.repos.d/CentOS-Base.repo

under the section updates, comment out the mirrorlist line (put a # in front of the line), then on a new line write:


now try:

yum install php-mbstring

(afterwards you'll probably want to uncomment the mirrorlist and comment out the baseurl)