nosajix

Well-Known Member
Jul 30, 2005
68
4
158
I cannot for the life of me get xdebug to install on php 56 compiled with ea4. I have tried EVERYTHING - still in the end, my php -v states:
Code:
ea-php-cli Copyright 2017 cPanel, Inc.
Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at Xdebug: Documentation for a later version of Xdebug.

Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at Xdebug: Documentation for a later version of Xdebug.

PHP 5.6.33 (cli) (built: Jan 23 2018 14:58:46)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
I have tried to manually compile xdebug using ./configure --with-php-config=/usr/local/cpanel/3rdparty/php/56/bin/php-config and the make install says it installed the extentions at
/usr/local/cpanel/3rdparty/php/56/lib/extensions/no-debug-non-zts-20131226/
but still same output. What the heck is going on?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

I've been unable to reproduce the issue. Here are the steps I took:

1. Browsed to "WHM >> Module Installers >> PHP Pecl".

2. Selected "ea-php56" as the PHP version.

3. Searched for "xdebug" and installed it.

4. Ran the following command and confirmed it was installed:

Code:
# /opt/cpanel/ea-php56/root/usr/bin/php -v
PHP 5.6.33 (cli) (built: Jan 23 2018 14:58:01)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
Do you see the same result when using the "/opt/cpanel/ea-php56/root/usr/bin/php -v" command instead of just "php -v"? Are you using the latest EA4 packages (e.g. no updates are available when running the "yum update" command)?

Thank you.
 

nosajix

Well-Known Member
Jul 30, 2005
68
4
158
well ill be... I didn't even see the module installer - was triing everthing from terminal. none the less your suggestion worked Thank you very much. Should have come here first!
 
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

I'm glad to see that helped. Thank you for updating us with the outcome.
 

nosajix

Well-Known Member
Jul 30, 2005
68
4
158
ok, sorry to bother again but i am twice as confused now. my phpinfo shows xdebug no problem however I still get the message:

Code:
/opt/cpanel/ea-php56/root/usr/bin/php -v
Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.

PHP 5.6.33 (cli) (built: Jan 23 2018 14:58:46)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
Is it possible that there are two references to loading xdebug?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

Try uninstalling the PECL module via "WHM >> Module Installers" and then review the steps you took when you attempted to manually configure/install it. Did you setup any custom .ini files or entries in the php.ini file that may not have been removed?

Thank you.
 

katmai

Well-Known Member
Mar 13, 2006
564
4
168
Brno, Czech Republic
it doesn't seem to work. they made some changes so i guess you guys should pull the appropriate versions as installing on php 5.6 doesn't work.:

Module Installers
Installing PHP Pecl "xdebug"



Warning: popen() has been disabled for security reasons in OS/Guess.php on line 241

Warning: fgets() expects parameter 1 to be resource, null given in OS/Guess.php on line 242

Warning: pclose() expects parameter 1 to be resource, null given in OS/Guess.php on line 251
pecl/xdebug requires PHP (version >= 7.0.0), installed version is 5.6.37
No valid packages found
install failed
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hi @katmai,

Version 2.6.1 was recently published as the stable release of the xdebug PHP PECL package by it's maintainers. It now requires PHP version 7.0. Since the PECL installer in WHM only permits the installation of stable releases PECL packages, you'd need to manually install the legacy version via the command line if you want to install it for PHP version 5.6:

Code:
/opt/cpanel/ea-php56/root/usr/bin/pecl install https://pecl.php.net/get/xdebug-2.5.5.tgz
Keep in mind we discourage installing legacy PECL releases because they are no updated by their maintainers.

Thank you.