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!

Installing XDebug with EA4

Discussion in 'EasyApache' started by crephix, Mar 19, 2017.

  1. crephix

    crephix Registered

    Joined:
    Jan 6, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,
    I was trying to install XDebug on my WHM server following some guides in the internet. However all of them are outdated because they were only compatibel with EA3.

    What I have done so far:
    Code:
    1. cd /usr/bin
    2. wget https://xdebug.org/files/xdebug-2.5.1.tgz
    3. tar -xzvf xdebug-2.5.1.tgz
    4. cd xdebug-2.5.1
    5. /opt/cpanel/ea-php71/root/usr/bin/phpize (I only need XDebug for PHP 7.1)
    
    I am stuck at:
    6. ./configure -> configure: error: Cannot find php-config. Please use --with-php-config=PATH

    I have tried specifying my path as desired:
    ./configure --with-php-config=/opt/cpanel/ea-php71/root/etc/

    => Response: Exactly the same error


    Can someone guide me what I am doing wrong? I am willing to update this thread so other googlers can read here how to install Xdebug on EA4 environments :).
     
    #1 crephix, Mar 19, 2017
    Last edited by a moderator: Mar 20, 2017
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You'd use a command like this, since the path is /opt/cpanel/ea-php70/root/usr/bin/php-config:

    Code:
    ./configure --with-php-config=/opt/cpanel/ea-php71/root/usr/bin/php-config
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    amstel likes this.
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