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 基于单片机的靶位控制系统
  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错