繁体   English   中英

Magento2安装错误,指出我需要更改php.ini设置,但已设置

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

我正在尝试设置一个Magento 2应用程序。

我不断收到这样的错误:

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.

首先,我有3个目录:PHP5.6.31,PHP7.0.23,PHP7.1.9。 因此,在PHP 5.6.31中,我有3个ini文件,所有女巫均具有此设置。

always_populate_raw_post_data to -1

其他2个文件夹PHP7.0.23,PHP7.1.9在php ini中没有此文件夹,因为它是php的较新版本。 我的问题是,如果php ini确实具有正确的设置,但安装却另有说明,我该怎么办才能解决此问题?

Magento 2.1.11并不支持PHP 5.6.31,仅支持5.6.4及更高版本。 在这里看看。

因此,请先运行

which php 

要查看它要使用哪个版本,则可以卸载5.6版本并(更好)使用php7版本,或者确保它使用的是正确的版本。 希望能帮助到你。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM