group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #08545
[Bug 1572841] Re: Zabbix Frontend fails install with PHP7.0 due to always_populate_raw_post_data configuration
This bug was fixed in the package zabbix - 1:2.4.7+dfsg-2ubuntu2.1
---------------
zabbix (1:2.4.7+dfsg-2ubuntu2.1) xenial; urgency=medium
* d/control: add dependencies on split-out PHP7 packages (bcmath,
mbstring, xml) needed by web frontend (LP: #1571534, .
* debian/patches/always_populate_raw_post_data_not_in_php7.patch:
Backport '[ZBX-9659] changed setup condition for checking
always_populate_raw_post_data'. Closes LP: #1572841.
-- Nishanth Aravamudan <nish.aravamudan@xxxxxxxxxxxxx> Mon, 27 Jun
2016 17:03:29 -0700
** Changed in: zabbix (Ubuntu Xenial)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1572841
Title:
Zabbix Frontend fails install with PHP7.0 due to
always_populate_raw_post_data configuration
Status in zabbix package in Ubuntu:
Fix Released
Status in zabbix source package in Xenial:
Fix Released
Bug description:
[Impact]
* The zabbix web frontend has one incompatibility and some missing
dependencies with PHP7.0.
* End-users are unable to use the web-frontend due to these issues.
[Test Case]
* Install zabbix-frontend-php. Without the fix, the frontend will not
load properly. With the fix, it will.
[Regression Potential]
* The code change is identical to the upstream change; given that the
frontend won't load with the code as-is, I believe there is no
regression potential there.
* The dependency changes allow for the web frontend to work properly
without extra packages needing to be manually installed by end-users.
Again, no chance for regression.
---
always_populate_raw_post_data was deprecated in PHP 5.3 at which time
zabbix frontend setup began to insist that it be set to
always_populate_raw_post_data = -1 in the PHP.ini
In PHP 7.0, which Ubuntu 16.04 LTS ships with,
always_populate_raw_post_data has been removed completely. Due to
this PHP frontend setup gets stuck on always_populate_raw_post_data
not being disabled.
The solution is to apply the following patch to the PHP frontend code
to ignore PHP 7.0:
--- /usr/share/zabbix/include/classes/setup/CFrontendSetup.php 2016-04-21 01:06:25.603388814 -0400
+++ /usr/share/zabbix/include/classes/setup/CFrontendSetup.php 2016-04-21 01:06:59.980485531 -0400
@@ -72,7 +72,7 @@
}
// check for deprecated PHP 5.6.0 option 'always_populate_raw_post_data'
- if (version_compare(PHP_VERSION, '5.6', '>=')) {
+ if (version_compare(PHP_VERSION, '5.6', '>=') && version_compare(PHP_VERSION, '7.0', '<') ) {
$result[] = $this->checkPhpAlwaysPopulateRawPostData();
}
$result[] = $this->checkPhpSockets();
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zabbix/+bug/1572841/+subscriptions