Xdebug with XAMPP on Ubuntu 14.04

system configuration

Ubuntu 14.04

Xampp v 5.6.3

installed php5-dev after enabling xampp

sudo /opt/lampp/lampp start

Now I want to install wihin xampp, and I tried the available 3 method, but nothing works, see the whole process. Xdebug

1) Ubuntu Software Package

 sudo apt-get install php5-xdebug

The command completed successfully, but there is no such file in .usr / lib / php5 / ...

unidentified

2) Customized installation instructions

downloaded xdebug.tar.gz after checking with the wizard

 ice@cold:~/Downloads/xdebug-2.2.6$ /usr/bin/phpize5 

/ usr / bin / phpize5 Cannot find config.m4.
Make sure you run '/ usr / bin / phpize5' in the directory with the source code of the module.

also tried to phpize, /opt/lampp/bin/phpizebut does not work

3) Install PECL

pecl help version

PEAR: 1.9.4
PHP: 5.5.9-1ubuntu4.5 Zend Engine: 2.5.0
: Linux 3.13.0-39-generi# 66-Ubuntu SMP , 28 13:30:27 UTC 2014 x86_64

pecl install xdebug

...
...
Build process completed successfully
Installing '/usr/lib/php5/20121212/xdebug.so'
install ok: channel://pecl.php.net/xdebug-2.2.6
configuration option "php_ini" is not set to php.ini location
You should add "zend_extension=xdebug.so" to php.ini

644/usr/lib/php5/20121212/xdebug.so

/opt/lampp/etc/php.ini

[xdebug]
zend_extension="/usr/lib/php5/20121212/xdebug.so"

xdebug screenshot

+6
5

/opt/lmapp/etc/php.ini xdebug.so zend_extension

[xdebug]
zend_extension="/usr/lib/php5/20121212/xdebug.so"

[xdebug]
zend_extension="xdebug.so"

Xdebug.

screenshot

AS , Xdebug Docs

.. "extension = xdebug.so" php.ini - .

+8

xdebug xampp

/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so

ubuntu 14.04 /opt/lampp , php.ini

; zend_extension = opcache.so

zend_extension = "//xdebug.so"

zend_extension = "/Opt/lampp/Lib/PHP// ---20131226/xdebug.so"

+10
[xdebug]
zend_extension="xdebug.so"

[xdebug]
zend_extension="20160603/xdebug.so"
0

:

sudo apt install php-pear

sudo pecl channel-update pecl.php.net

sudo apt install php7.2-dev

sudo pecl install xdebug

, zend_extension =... php.ini. php-fpm ( Apache, Apache), XDebug!

:

/opt/lampp/etc/php.ini

The configuration parameter "php_ini" is not set to php.ini. You should add "zend_extension = / usr / lib / php / 20170718 / xdebug.so" in php.ini.

sudo /opt/lampp/lampp restart
0
source

Just enter the command sudo pecl install xdebugOR Install it with the source code

git clone -b xdebug_2_4 --single-branch https://github.com/xdebug/xdebug/

OR

wget https://github.com/xdebug/xdebug/archive/XDEBUG_2_4_0.zip xdebug.zip && unzip xdebug.zip
cd xdebug
sudo chmod +x ./rebuild.sh && ./rebuild.sh
./configure <CONFIG>
make && sudo make install
0
source

All Articles