From 869d7f6c7eba46761b8e5cfcc3f4c78beb8c16e7 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 11 Mar 2016 18:50:32 +0200 Subject: [PATCH] roles/php5-fpm: Disable always_populate_raw_post_data Deprecated in PHP 5.6 and causes problems with Piwik. I'm not sure if WordPress needs this, but I did find some references in its code to $HTTP_RAW_POST_DATA. See: https://secure.php.net/manual/en/migration56.deprecated.php#migration56.deprecated.raw-post-data See: https://www.bram.us/2014/10/26/php-5-6-automatically-populating-http_raw_post_data-is-deprecated-and-will-be-removed-in-a-future-version/ Signed-off-by: Alan Orth --- roles/php5-fpm/templates/php.ini.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/php5-fpm/templates/php.ini.j2 b/roles/php5-fpm/templates/php.ini.j2 index 6a1ea6a..f3f087d 100644 --- a/roles/php5-fpm/templates/php.ini.j2 +++ b/roles/php5-fpm/templates/php.ini.j2 @@ -696,7 +696,7 @@ default_mimetype = "text/html" ; to disable this feature. If post reading is disabled through ; enable_post_data_reading, $HTTP_RAW_POST_DATA is *NOT* populated. ; http://php.net/always-populate-raw-post-data -;always_populate_raw_post_data = On +always_populate_raw_post_data = -1 ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ;