Search code examples
phpmagento2php-ini

Magento2 setup error stating i need to change php.ini setting but it is already set


I am trying to set up a Magento 2 app.

I keep getting an error like this:

Your PHP Version is 5.6.31, but always_populate_raw_post_data = 0. 
$HTTP_RAW_POST_DATA is deprecated from PHP 5.6 onwards and will be removed in PHP 7.0. 
This will stop the installer from running. Please open your php.ini file and set always_populate_raw_post_data to -1. 
If you need more help please call your hosting provider.

First of all I have 3 dirs: PHP5.6.31, PHP7.0.23, PHP7.1.9. So in the PHP 5.6.31 i have 3 ini files all of witch have this setting.

always_populate_raw_post_data to -1

The other 2 folders PHP7.0.23, PHP7.1.9 don't have this in the php ini because it is newer version of php. My question is what can i do to resolve this issue if the php ini does have the correct settings but the install says otherwise?


Solution

  • Well Magento 2.1.11 does not support PHP 5.6.31, but only from 5.6.4 and upper. Have a look here.

    So, try first running

    which php 
    

    to see which version it is trying to use, then either you can uninstall the 5.6 version and (better) use the php7 version, or be sure it is using the proper one. Hope it helps.