xDebug installed but not working

ericovk

Verified User
Joined
Apr 17, 2012
Messages
228
Location
Rotterdam, Netherlands
I already installed xDebug by using pecl. It worked, but pretty recently I installed 2 versions of PHP: 5.6 and 7.0 (php-fpm mode). I suppose xDebug broke after upgrading. Not really sure about that.

Anyway, I reinstalled xDebug. Found out that didn't work well with ioncube. So I disabled ioncube in: /usr/local/php56/lib/php.conf.d/10-directadmin.ini

In shell xDebug shows up:
Code:
# php -vPHP 5.6.20 (cli) (built: Apr  4 2016 22:19:11) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
    with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies

When echoing phpinfo it doesn't show up, but ioncube is????:
snippet of phpinfo page:
Code:
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.20, Copyright (c) 2002-2016, by ionCube Ltd.
    with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies

I tried to activate xDebug at the end of the php.ini file (/usr/local/php56/lib/php.ini):

Code:
..... 
; Xdebugzend_extension=/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
display_errors = On
html_errors = On
xdebug.profiler_enable = 0
xdebug.profiler_output_dir=/var/log/xdebug
xdebug.profiler_output_name=callgrind.%R%s


; Local Variables:
; tab-width: 4
; End:

Is it due to multiple php versions that xDebug isn't working? Or does this php version needs another approach?
 
Back
Top