Magento安装期间出错


Error during Magento Installation

我正在尝试在我的本地主机上安装 Magento 2,但它在准备情况检查期间给了我以下错误。

PHP Settings Check
Your current setting of xdebug.max_nesting_level=100. Magento 2 requires it to be set to 200 or more. Edit your config, restart web server, and try again.

我在整个wamp中搜索了xdebug.max_nesting_level,但没有找到任何这样的短语。打开了我的php.ini文件。最后几行是这些。

[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "d:/wamp/tmp"
xdebug.show_local_vars=0

所以我在它下面添加了额外的行。

xdebug.max_nesting_level = 200

但是安装仍然给我同样的错误。我该怎么办?

您是否重新启动了 apache 服务?

编辑:

将 'php_value xdebug.max_nesting_level 500' 添加到您的 .htaccess