crephix

Registered
Jan 6, 2015
1
0
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 :).
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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/
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.
 
  • Like
Reactions: amstel