How to install PHP mbstring on CentOS 6.2
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:
baseurl=http://centos.intergenia.de/$releasever/updates/$basearch/
now try:
yum install php-mbstring
(afterwards you'll probably want to uncomment the mirrorlist and comment out the baseurl)
If you have cPanel hosting you can use Easy Apache to do this through shell. These are the steps.
- Type the Easy Apache PathType the path for Easy Apache
root@vps#### [~]# /scripts/easyapache
- Do not say yes to the "cPanel update available".
- Continue through the screens with defaults till you get to the "Exhaustive options list".
- Page down till you see the Mbstring extension listed and select it.
- Continue through the Steps and Save the Apache PHP build.
Apache and PHP will now rebuild to include the mbstring extension. Wait for the process to finish ~10 to 30 minutes. Once the process is finished you should see the Mbstring extension in the phpinfo now.
For more detailed steps see the article Installing the mbstring extension with Easy Apache
Please check your /etc/yum.conf
file, maybe it is exclude php
packages.
You should remove php*
from this line so you can download php-*
packages:
exclude= courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* php*
It's seems your server having some scripts like cPanel