Link to home
Start Free TrialLog in
Avatar of Victor Kimura
Victor KimuraFlag for Canada

asked on

enable or install PHP extension "mbstring"

Hi,

I'm wondering how would enable or install PHP extension "mbstring"? I have a Centos machine 5.x. I have a VPS with cPanel and WHM. Do I do this through WHM or should I use SSH and command line operations? If so, what command do I use to enable or install? Or where would I go through the WHM to enable it?

Much thanks,
Victor
ASKER CERTIFIED SOLUTION
Avatar of boon86
boon86
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Victor Kimura

ASKER

Hi ghodder,

Will that work and not have any effects on WHM/cPanel? I'm only familiarizing myself with WHM.

The other question is that I assume this will install it as a module rather than being compiled. Correct?

Thanks,
Victor
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi boon86,

Thanks for those links. That's helpful. I'm wondering if anyone has tried the following as an option to add in extensions like so:
CUSTOM_PHP_FLAGS="--with-xsl" /scripts/easyapache

Advanced users can use
FULL_CUSTOM_PHP_FLAGS="'--with-xsl' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-iconv' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--enable-memory-limit' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pgsql=/usr' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-wddx' '--with-xmlrpc' '--with-zlib'" /scripts/easyapache

Can somebody confirm for me the operation of "CUSTOM_PHP_FLAGS" and "FULL_CUSTOM_PHP_FLAGS" within the cPanel environment?

Am I correct in assuming that if I specify --with-xsl via CUSTOM_PHP_FLAGS, will this simply add that flag to anything I choose in easyapache, where FULL_CUSTOM_PHP_FLAGS will override ALL php flags chosen in easyapache?

The above was from http://www.webhostingtalk.com/archive/index.php/t-565940.html

The other option was this:
Edit /home/cpapachebuild/buildapache/buildscript
There are about a dozen lines that start with ./configure and have all of the php options as listed in my original post. add --with-xsl to the end of all of them.
Execute this -

sh /home/cpapachebuild/buildapache/buildscript

Has anyone tried them personally? Which one is safer/faster?

Thanks,
Victor
not sure about --with-xsl maybe you can try and let us know what did you get
I didn't try this option: CUSTOM_PHP_FLAGS="--with-xsl" /scripts/easyapache

I just ran easyapache and went through the process. I did run into a build problem which I'm trying to resolve now with cPanel. I submitted a ticket and they respond fairly quickly. I hope and pray that it'll be resolved quickly too. =)

Thanks for your replies.