zabbix3.0在centos7环境下always_populate_raw_post_data的设置
找到在你的项目先找到 CFrontendSetup.php 我这的项目在www目录下 或者find / -name CFrontendSetup.php
找到 checkPhpAlwaysPopulateRawPostData()方法大概在366行
添加 :
$current = -1;
如下:
public function checkPhpAlwaysPopulateRawPostData() {
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.’)
];
}
保存刷新页面。