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


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

zabbix之centos6环境下always_populate_raw_post_data的设置

zabbix之centos6环境下always_populate_raw_post_data的设置 找到 checkPhpAlwaysPopulateRawPostData()方法大概在366行  

zabbix之centos6环境下always_populate_raw_post_data的设置

添加 :

$current = -1;  

如下:

public function checkPhpAlwaysPopulateRawPostData() {                 
 $current = ini_get('always_populate_raw_post_data');   
 $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.')                 
];         
  }

红色的为添加的内容,保存刷新页面。

转载地址:》》》传送门》》》

转载于:https://blog.51cto.com/13566681/2148718

相关文章:

  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2021-09-25
  • 2022-12-23
  • 2021-06-13
  • 2021-12-03
猜你喜欢
  • 2021-08-30
  • 2021-07-18
  • 2022-01-14
  • 2021-11-10
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案