[Solved] Xdebug And Yii2 Error

Hello everyone, I don’t know if this is a Yii2 bug or something that’s happening just on my computer. When I execute ./yii on my terminal I get the following message


PHP Warning:  Module 'xdebug' already loaded in Unknown on line 0

And then





PHP Core Warning 'yii\base\ErrorException' with message 'Module 'xdebug' already loaded'


in ./Unknown:0


Stack trace:

#0 {main}



I did a grep xdebug /etc/php.ini and I got





[xdebug]

zend_extension="/usr/lib/php/modules/xdebug.so"

xdebug.remote_enable=On

xdebug.remote_host="localhost"

xdebug.remote_port=9000

xdebug.remote_handler="dbgp"



Any clue about what’s happening here?

Thanks in advance and congratulations for this new major release :)

Solved!

I commented out the line that said:

[color=#000000]zend_extension[/color][color=#666600]=[/color][color=#008800]"/usr/lib/php/modules/xdebug.so"[/color]

on my php.ini.

Thanks anyway!

Thanks !! this thing has troubled me for ages but I always thought that this module is a must.

That’s little bit strange because my server config has an enabled option


zend_extension=.../ext/php_xdebug.dll"

and on my terminal all work fine for me, without any errors or notice… hm.