简体   繁体   English

MAMP:php.ini-mbstring.http_input-禁用Drupal

[英]MAMP: php.ini - mbstring.http_input - Disabling for Drupal

Updated my MAMP to the most current [3.0.7.2] since I have OSX 10.10 now. 由于我现在拥有OSX 10.10,因此将MAMP更新为最新的[3.0.7.2]。 Having issues with installing any new Drupal installations locally now. 现在在本地安装任何新的Drupal安装时遇到问题。 Error - mbstring.http_input must be disabled. 错误-mbstring.http_input必须被禁用。

I have checked the php.ini being loaded in from /Applications/MAMP/bin/php/php5.6.2/conf/php.ini and shows it is disabled. 我检查了从/Applications/MAMP/bin/php/php5.6.2/conf/php.ini中加载的php.ini,并显示它已被禁用。

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 -http://us3.php.net/manual/en/function.mb-http-input.php

Am I missing something? 我想念什么吗? Any help greatly appreciated. 任何帮助,不胜感激。

Disabling mbstring.http_input using php.ini file should work. 使用php.ini文件禁用mbstring.http_input应该可以。 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). 但是,也许您将php.ini文件更改为未加载的php版本(因为MAMP附带了许多php版本,在您的情况下为php5.6.2)。

You can try disabling mbstring.http_input from .htaccess file. 您可以尝试从.htaccess文件禁用mbstring.http_input。 Just copy these lines to the file. 只需将这些行复制到文件中即可。

php_value mbstring.http_input pass
php_value mbstring.http_output pass

Or via settings.php file: 或通过settings.php文件:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM