MAMP: php.ini - mbstring.http_input - Disabling fo

2019-07-28 05:21发布

问题:

Updated my MAMP to the most current [3.0.7.2] since I have OSX 10.10 now. Having issues with installing any new Drupal installations locally now. Error - mbstring.http_input must be disabled.

I have checked the php.ini being loaded in from /Applications/MAMP/bin/php/php5.6.2/conf/php.iniand shows it is disabled.

I read into this and tried setting it to auto/off/false/pass, no luck. - http://us3.php.net/manual/en/function.mb-http-input.php

Am I missing something? Any help greatly appreciated.

回答1:

Disabling mbstring.http_input using php.ini file should work. But maybe you changed the php.ini file for an unloaded php version (because MAMP comes with many php versions, php5.6.2 in your case).

You can try disabling mbstring.http_input from .htaccess file. Just copy these lines to the file.

php_value mbstring.http_input pass
php_value mbstring.http_output pass

Or via settings.php file:

ini_set('mbstring.http_input', 'pass');
ini_set('mbstring.http_output', 'pass');


标签: php drupal mamp