Always_populate_raw_post_data=-1 when installing

I’m trying to install Piwik on a RasPi running Debian Jessie. I have PHP 5.6 and Apache 2.

In the second phase (“System Check”) all is well except for one error:

To prevent some critical issue, you must set the following in your php.ini file: 
After making this change, restart your web server.

I have set this both in php.ini, but also in a .htaccess file. I have restarted the web server and my computer.

Can someone help?


Try upgrade your PHP to PHP7

The workaround that actually works on hosted system is:
Create a file called “.user.ini” in the installation directory
Using the editor (CPanel has one), paste this code into the file: always_populate_raw_post_data = -1
Save the file
reload page