douji0108 2015-12-10 11:03
浏览 45
已采纳

Magento 2.0安装错误always_populate_raw_post_data

I am trying to install Magento 2.0 on my Server. During the Installation process, at the version check screen, there is the following error:

Screenshot Magento 2.0 installation

My server is on OpenSuse 13.2 with PHP 5.6.1.

In my /etc/php5/cli/php.ini is the following line:

always_populate_raw_post_data = -1

I restarted Apache already.

Edit

I also tried it with always_populate_raw_post_data = "-1" AND always_populate_raw_post_data = 0. For default it was like ;always_populate_raw_post_data = 0.

I run the install script via Google Chrome.

  • 写回答

1条回答 默认 最新

  • duanke1286 2015-12-14 05:36
    关注

    In my /etc/php5/cli/php.ini is the following line:

    This config file only affects php run from the command line (/cli/), and you said you're running it from Apache.

    To edit the version Apache uses, you'll need to edit a different file. On OpenSUSE, it should be /etc/php5/apache2/php.ini. If you're using Apache with PHP FastCGI Process Manager, it would be /etc/php5/fpm/php.ini. You can then set always_populate_raw_post_data to 1 or On.

    Note that this will not work in PHP 7.0+ as always_populate_raw_post_data no longer exists in PHP 7; you're stuck with 5.6.x for now. Hopefully Magento will fix the issue in an upcoming release.

    To find your Apache php.ini path on any system, you can also put a file in the root directory of your webserver called index.php with the following contents:

    <?php phpinfo(); ?>
    

    And it will output PHP's runtime configuration, including it's path to php.ini.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:训练序列与输入层维度不一样
  • ¥15 关于Ubuntu20.04.3LTS遇到的问题:在安装完CUDA驱动后,电脑会进入卡死的情况,但可以通过键盘按键进入安全重启,但重启完又会进入该情况!
  • ¥15 关于#嵌入式硬件#的问题:树莓派第一天重装配置python和opencv后第二天打开就成这样,瞎捣鼓搞出来文件夹还是没把原来的界面调回来
  • ¥20 Arduino 循迹小车程序电路出错故障求解
  • ¥20 Arduino 循迹小车程序电路出错故障求解
  • ¥100 AT89C52单片机C语言调试之后再回答
  • ¥15 AT89C52单片机C语言串口助手发送数据包返回值
  • ¥15 C++数组中找第二小的数字程序纠错
  • ¥15 wannier复现图像时berry曲率极值点与高对称点严重偏移
  • ¥15 利用决策森林为什么会出现这样·的问题(关键词-情感分析)