MAMP: php.ini - mbstring.http_input - Disabling for Drupal

久未见 提交于 2019-12-11 08:34:23

问题


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');


来源:https://stackoverflow.com/questions/26641022/mamp-php-ini-mbstring-http-input-disabling-for-drupal

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!