Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

EasyApache4 Xdebug

Discussion in 'EasyApache' started by nosajix, Jan 25, 2018.

  1. nosajix

    nosajix Active Member

    Joined:
    Jul 30, 2005
    Messages:
    30
    Likes Received:
    1
    Trophy Points:
    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?
     
    #1 nosajix, Jan 25, 2018
    Last edited by a moderator: Jan 25, 2018
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nosajix

    nosajix Active Member

    Joined:
    Jul 30, 2005
    Messages:
    30
    Likes Received:
    1
    Trophy Points:
    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!
     
    cPanelMichael likes this.
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm glad to see that helped. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. nosajix

    nosajix Active Member

    Joined:
    Jul 30, 2005
    Messages:
    30
    Likes Received:
    1
    Trophy Points:
    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?
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    537
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice