How to install php mbstring support (add php mbstring module) on CentOS 5.5

I needed to install support for mbstring, as it was required by a client hosted on one of the servers running on CentOS 5.5.

Installation is quite straight forward as php-mbstring rpm package is available, here is how to install mbstring:

[root@centos [~]#yum install php-mbstring

Further on a restart of Apache or Litespeed and the mbstring support is loaded in php.
On some OpenVZ CentOS virtual servers enabling the php-mbstring might require also a complete php recompile if php is not build with the –enable-mbstring

If thus the mbstring has to be enabled on an OpenVZ server with php precompile, this can be easily done with cpeeasyapache , like so

server: ~# cd /home/cpeasyapache/src/php-5.2.9
server: php-5.2.9# cat config.nice |head -n $(($(cat config.nice |wc -l) - 1)) >>;
server: php-5.2.9# echo "'--enable-mbstring' " >>; echo '"$@"' >>
server: php-5.2.9# mv config.nice config.nice.orig; mv config.nice

After that follow the normal way with make, make install and make install modules , e.g.:

server: php-5.2.9# make && make install && make install modules

Next the php-mbstring is enabled enjoy 😉

Share this on:

More helpful Articles

Download PDFDownload PDF

Tags: , , , , , , , , , , , , , , , , , , , , , ,

7 Responses to “How to install php mbstring support (add php mbstring module) on CentOS 5.5”

  1. junkiest says:
    Firefox 4.0.1 Firefox 4.0.1 Windows 7 Windows 7
    Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

    Nice tutorial…. thanks !!!

    View CommentView Comment
  2. Latina Liloia says:
    Firefox 3.5.3 Firefox 3.5.3 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv: Gecko/20090824 Firefox/3.5.3

    What’s Happening i am new to this, I stumbled upon this I’ve found It positively useful and it has helped me out loads. I hope to contribute & aid other users like its helped me. Good job.

    View CommentView Comment
  3. czytaj dalej says:
    Firefox 3.8 Firefox 3.8 Ubuntu 9.25 Ubuntu 9.25
    Mozilla/5.0 (X11; U; Linux i686; it-IT; rv: Gecko/2008092313 Ubuntu/9.25 (jaunty) Firefox/3.8

    Świetne miejsce, cieszę się, że Was wyszukałam! Stronę polecił mi przyjaciel wczoraj w pracy i nie żałuję, że poświęciłam jej pół nocy. Było warto, znalazłam wiele pożytecznych info!|No cóż, póki co dużo się nie dowiedziałem, lecz myślę, że to miejsce ma ogromy potencjał. Ten temat dotyczy wielu osób, warto rozwijać takie strony. Mam nadzieję, że się rozkręci…

    View CommentView Comment
  4. Vertie Loretz says:
    Internet Explorer 7.0 Internet Explorer 7.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)

    Interesująco piszesz, to już kolejny tekst który odwiedzam na twojej stronie

    View CommentView Comment
  5. M@ryśka says:
    Firefox 3.0.5 Firefox 3.0.5 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv: Gecko/2008120122 Firefox/3.0.5

    Hey! Worthy news above. Good luck and keep spreading this info!

    View CommentView Comment
  6. Лена says:
    Internet Explorer 9.0 Internet Explorer 9.0 Windows 7 Windows 7
    Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; SV1)

    Сайт Не лучшие идеи. Создание веб круга общения для совместного творчества во многих сферах. Мы поможем Вам найти уникальную личность, способную творить. Этим я и занимаюсь на этом сайте и приглашаю всех желающих.

    View CommentView Comment
  7. Kaleigh Arras says:
    Opera 8.50 8.50 Opera 8.50 8.50 Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.50

    Hiya, I'm really glad I have found this information. Nowadays bloggers publish only about gossips and net and this is actually irritating. A good web site with interesting content, that's what I need. Thanks for keeping this web-site, I will be visiting it. Do you do newsletters? Can't find it.

    View CommentView Comment

Leave a Reply

CommentLuv badge