php禁用字符,php – 无法为Drupal 8安装禁用多字节字符串输入转换

我已经安装了很多Drupal站点,之前从未遇到过这个问题.在尝试安装8.1.2时,我收到一条错误消息:

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.

Drupal附带的.htaccess文件已经有一个应该禁用它的部分:

# PHP 5, Apache 1 and 2.

php_value assert.active 0

php_flag session.auto_start off

php_value mbstring.http_input pass

php_value mbstring.http_output pass

php_flag mbstring.encoding_translation off

# PHP 5.6 has deprecated $HTTP_RAW_POST_DATA and produces warnings if this is

# not set.

php_value always_populate_raw_post_data -1

我已经测试过并使用了这个.htaccess文件.服务器正在运行带有cPanel / WHM的CentOS 7的新安装.我还将PHP设置(使用WHM)更改为:

; http input encoding.

mbstring.http_input = pass

; http output encoding. mb_output_handler must be

; registered as output buffer to function

mbstring.http_output = pass

虽然我不认为这与默认值有明显区别.我检查过这是用过的实际php.ini文件.我重新启动了Apache.

解决方法:

解决方案是启用mbstring扩展.

标签:php,centos,drupal,whm

来源: https://codeday.me/bug/20190706/1395142.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值