Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I add support for mb_substr on my CentOs server running cPanel/WHM?

share|improve this question

closed as off topic by Ward, Tim Brigham, gWaldo, rnxrx, Michael Hampton Sep 6 '12 at 22:55

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

I added support for mb_substr by using Easy::Apache in WHM. When building a new configuration i chose the option extensive options and checked for the mb_substr.

share|improve this answer

I'm assuming you're talking about the mb_substr function in PHP. Without the interference of cPanel, you'd just be able to install the php-mbstring or php53-mbstring package at the command line and restart Apache.

Most web hosting control panel software tends to sink tendrils deep inside the configuration of software it deems important, such as PHP. Verify that the PHP version installed is provided by the system package manager, and you should be all set. One way to do this would be to compare the installed PHP version string against the version that the package manager thinks is installed. On CentOS, you'd do this by running php --version, then checking the version string against what yum info php or yum info php53 provides.

It's quite possible that the PHP version installed isn't done through the normal package management mechanism. You may need to ask cPanel technical support for assistance in that case. Updating or altering the configuration of cPanel-managed things can break the world horribly, and you should proceed with caution.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.