LNMP 平台 php7 ,zabbix 安装可能会出现的问题 always-populate-raw-post-data = -1,解决方案:
vim /目录/zabbix/include/classes/setup/CFrontendSetup.php 找到下面代码、关于always-populate-raw-post-data; 添加 $current = -1; public function checkPhpAlwaysPopulateRawPostData() { $current = ini_get(‘always_populate_raw_post_data‘); $current = -1; return array( ‘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.‘) ); }
重新刷新 zabbix 安装页面即可;
时间: 2024-10-14 04:43:28