cancel
Showing results for 
Search instead for 
Did you mean: 

PHP Settings Check magento 2 error

SOLVED

Re: PHP Settings Check magento 2 error

Please help.

 

I have bin in contact with my host and they did all this things you tried but I can`t get true the error message for: always_populate_raw_post_data = -1

 

Any ideas what it could be?

Re: PHP Settings Check magento 2 error

Note: I worked on a local install. 

 

After trying every tip I could find, and verifying through phpinfo that always_populate_raw_post_data had indeed been set to -1, the thing that worked for me was modifying the .htaccess by adding the following to the end:

<IfModule mod_php5.c>
php_value always_populate_raw_post_data -1
</IfModule>

 

Note that this uses php_value rather than php_flag. 

cf. commenter darekk on the Magento stack exchange 

http://magento.stackexchange.com/questions/93465/set-always-populate-raw-post-data-to-1-doesnt-work

Re: PHP Settings Check magento 2 error

I am using Plesk to manage the hosting space. I added always_populate_raw_post_data = -1 to the PHP settings in "Additional configuration directives" and that fixed it for me :-)

Re: PHP Settings Check magento 2 error

ok the part i figured no one made clear to most..... Uncommenting means remove the ";" colon symbol from in front of the line. took me hours to figure uncommenting without learning php!!!

Re: PHP Settings Check magento 2 error

You need to open php.ini as an administrator, after that to change all you need in the file and after that restart the server.

Re: PHP Settings Check magento 2 error

I installed PHP7 and it is all solved now!

Smiley Happy

Re: PHP Settings Check magento 2 error

Re: PHP Settings and version Check magento 2 error

I have resolved this error by modifying  some code at

 

1) D:\xampp\htdocs\m2\app\bootstrap.php

add you php version in first if condition like

if (!defined('PHP_VERSION_ID') || !(PHP_VERSION_ID >= 50600 && PHP_VERSION_ID < 50700 || PHP_VERSION_ID === 70002 || PHP_VERSION_ID === 70004 || PHP_VERSION_ID >= 70006)) {

2) D:\xampp\htdocs\m2\setup\src\Magento\Setup\Model\PhpReadinessCheck.php

Go to checkPhpVersion() function and comment below line

//if (!$multipleConstraints->matches($currentPhpVersion)) {
// $responseType = ResponseTypeInterface::RESPONSE_TYPE_ERROR;
//}

 

Note: after you completed your installation just remove comments.

 

This solution work for me and Let me know if you still facing error.

 

Thanks,

Nits

 

 

Re: PHP Settings Check magento 2 error

I also encountered a similar situation
Your help is really helpful to me
thank you

Dịch vụ thiet ke web tai ha noi chuyên nghiệp giá rẻ và cung cấp các gói dich vu thiet ke web uy tín nhất

Re: PHP Settings Check magento 2 error

this works kidos