Zabbix Installing Always-populate-raw-post-data = 1 issue under PHP7

Source: Internet
Author: User

LNMP platform PHP7, Zabbix installation may occur problems Always-populate-raw-post-data =-1, Solution:

vim /Directory/zabbix/include/classes/setup/cfrontendsetup.php Find the following code, about Always-populate-raw-post-data; add  $ 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. ')                 );         }


Re-refresh the Zabbix installation page;

This article is from "blog title do not know what to write" blog, please be sure to keep this source http://very1024.blog.51cto.com/3588520/1722902

Zabbix Installing Always-populate-raw-post-data = 1 issue under PHP7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.