alioygur alioygur - 2 years ago 166
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?

Answer Source

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)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download