I had a previous installation of Zabbix on my server that worked fine, but I've had to reinstall pretty much everything since I updated Ubuntu to 15.04. After installing the frontend and running the installation through the web GUI, this one particular prerequisite keeps failing. Zabbix insists that always_populate_raw_post_data be set to -1 (off). I've looked in /etc/php5/apache2/php.ini, and it's already set to -1. I've tried adjusting this every way I can think of to get a different result (and restarted Apache2 each time), and nothing I do seems to allow it to pass. To be completely fair, I'm pretty new to Linux and PHP, so it's entirely possible the problem isn't anything more than me being an idiot. Has anybody ever run into this problem before, or know how to remedy it?
Ad Widget
Collapse
PHP always_populate_raw_post_data failure
Collapse
X
-
-
-
Found the solution.
I will leave here this, it's the workaround I found.
In the file CFrontendSetup.php. This file is in /usr/share/zabbix/include/classes/setup/
In this file we have to change the value of the version of PHP
Original code
After making the changeCode:// check for deprecated PHP 5.6.0 option 'always_populate_raw_post_data' if (version_compare(PHP_VERSION, '[B]5.6[/B]', '>=')) { $result[] = $this->checkPhpAlwaysPopulateRawPostData();
And thats all. I have to restart my browser and launch again the setup wizzard.Code:// check for deprecated PHP 5.6.0 option 'always_populate_raw_post_data' if (version_compare(PHP_VERSION, '[B]7.1[/B]', '>=')) { $result[] = $this->checkPhpAlwaysPopulateRawPostData();Comment
-
Just found this thread helpful, a year after it was posted. Thanks apeyrot!
I will leave here this, it's the workaround I found.
In the file CFrontendSetup.php. This file is in /usr/share/zabbix/include/classes/setup/
In this file we have to change the value of the version of PHP
Original code
After making the changeCode:// check for deprecated PHP 5.6.0 option 'always_populate_raw_post_data' if (version_compare(PHP_VERSION, '[B]5.6[/B]', '>=')) { $result[] = $this->checkPhpAlwaysPopulateRawPostData();
And thats all. I have to restart my browser and launch again the setup wizzard.Code:// check for deprecated PHP 5.6.0 option 'always_populate_raw_post_data' if (version_compare(PHP_VERSION, '[B]7.1[/B]', '>=')) { $result[] = $this->checkPhpAlwaysPopulateRawPostData();Comment
Comment