How to disable MB String Input in cpanel 58

Marcel Corzo

Registered
Oct 15, 2017
2
0
1
Colombia
cPanel Access Level
Website Owner
Hi. I'm trying to install a drupal theme in a byehost hosting service, but it says that I have to disable MB String Input: "Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_input setting. Please refer to the PHP mbstring documentation for more information.". I didn't find the php.ini file. So I found on the cpanel version 58.0.31 the link "alter php config", I found the MB string input set to "auto", I tried to put another value to disable it but it always gets an error "error please try again". I tried the values "0", "off", and always I get the error. Please help me which value can I put here. Thank you very much for your help.

Regards,

Marcel
 

Marcel Corzo

Registered
Oct 15, 2017
2
0
1
Colombia
cPanel Access Level
Website Owner
Hi again. I could changed it with the value "pass". But now I get this error:
"Multibyte string output conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_output setting. Please refer to the PHP mbstring documentation for more information.". And that variable is not available through my c-panel. How could I change that?
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
458
113
UK
cPanel Access Level
Root Administrator
This used to work, but I haven't tried it for a couple of years.......

You could try and add the following to your htaccess file:
Code:
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
  php_flag magic_quotes_gpc                 off
  php_flag magic_quotes_sybase              off
  php_flag register_globals                 off
  php_flag session.auto_start               off
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_flag mbstring.encoding_translation    off
</IfModule>
If that doesn't work, I suggest you ask your web host for help in changing the PHP ini settings for your site.
 
Last edited:

cPWilliamL

cP Technical Analyst II
Staff member
May 15, 2017
258
30
103
America
cPanel Access Level
Root Administrator
Hi Marcel,

How you go about disabling this differs depending on your PHP handler and on your EasyApache version. If using CGI or suPHP as your PHP handler, try adding the following to a `.user.ini' file in your domain's document root:
Code:
mbstring.http_input = pass
You should also be able to confirm via a phpinfo page to ensure the drupal theme is accurately reporting the mbstring directive settings:
PHP: phpinfo - Manual