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 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记