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)) >> config.nice.new;
server: php-5.2.9# echo "'--enable-mbstring' " >> config.nice.new; echo '"$@"' >> config.nice.new
server: php-5.2.9# mv config.nice config.nice.orig; mv config.nice.new 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 😉
More helpful Articles
Tags: amp, apache, CentOS, client, config, installation, litespeed, Module, modulesNext, mv, newserver, openvz, orig, package, php, root, rpm, server, server php, support, virtual servers, way, yum
Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Nice tutorial…. thanks !!!
View CommentView CommentMozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.3) 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 CommentMozilla/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 CommentMozilla/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