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

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

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

这里写图片描述

找到 checkPhpAlwaysPopulateRawPostData()方法大概在366行
这里写图片描述

添加 :
$current = -1;

如下:

public function checkPhpAlwaysPopulateRawPostData() {
c u r r e n t = i n i g e t ( a l w a y s p o p u l a t e r a w p o s t d a t a ) ; 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.’)
];
}
保存刷新页面。

猜你喜欢

转载自blog.csdn.net/shaopeng1942/article/details/81702854