zabbix3.0在centos7环境下always_populate_raw_post_data的设置

找到在你的项目先找到 CFrontendSetup.php 我这的项目在www目录下 或者find / -name CFrontendSetup.php

zabbix3.4在centos7环境下always_populate_raw_post_data的设置

找到 checkPhpAlwaysPopulateRawPostData()方法大概在366行
zabbix3.4在centos7环境下always_populate_raw_post_data的设置

添加 :
$current = -1;

如下:

public function checkPhpAlwaysPopulateRawPostData() {
current=iniget(alwayspopulaterawpostdata);current = -1;
return [
‘name’ => _(‘PHP always_populate_raw_post_data’),
‘current’ => ($current != -1) ? (‘on’) : (‘off’),
‘required’ => _(‘off’),
‘result’ => ($current != -1) ? self::CHECK_FATAL : self::CHECK_OK,
‘error’ => _(‘PHP always_populate_raw_post_data must be set to -1.’)
];
}
保存刷新页面。

相关文章:

  • 2022-01-07
  • 2021-04-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-14
  • 2021-08-30
  • 2021-12-18
  • 2021-07-31
  • 2021-10-17
  • 2021-08-17
  • 2021-08-22
相关资源
相似解决方案