[xdebug-general] Can not get xdebug working on Linux Mint-Mate 17

From: Shakti ASAP <asap[@]ea-world.com>
Date: Tue, 04 Nov 2014 11:38:28 -0500
Hi,

I am trying to get xdebug working on Linux Mint-Mate 17. I spend several days to make it work and could not. This is a summary of the environment and what I did:

Linux Mint-Mate 17 with all updates
Linux MintVMVB 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64

php Version 5.5.9-1ubuntu4.5

packages installed:

php5
php5-mcrypt
php5-common
php5-json
php5-recode
php5-ldap
php5-curl
php5-xmlrpc
php5-cli
php5-mysqlnd
php-xdebug
libapache2-mod-php5

php5-dev
apt

I run phpinfo() and copy/pase into “http://xdebug.org/wizard.php” Run the wizard and this is output

Summary

I followed all instructions from the wizard, downloaded latest xdebug and I added to “/etc/php5/apache2/php.ini” just above [Date] following lines:


zend_extension=/usr/lib/php5/20121212/xdebug.so

[debug]
; Remote settings
xdebug.remote_autostart=off
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
;xdebug.remote_host=localhost
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

; General
xdebug.auto_trace=off
xdebug.collect_includes=on
xdebug.collect_params=off
xdebug.collect_return=off
xdebug.default_enable=on
xdebug.extended_info=1
xdebug.manual_url=http://www.php.net
xdebug.show_local_vars=0
xdebug.show_mem_delta=0
xdebug.max_nesting_level=100
;xdebug.idekey=

; Trace options
xdebug.trace_format=0
xdebug.trace_output_dir=/tmp
xdebug.trace_options=0
xdebug.trace_output_name=crc32

; Profiling
xdebug.profiler_append=0
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=0
xdebug.profiler_output_dir=/tmp
xdebug.profiler_output_name=crc32

Wrote a small php file to debug xdebug:

xdebug.php

?php
   $address = '127.0.0.1';
   $port = 9000;
   $sock = socket_create(AF_INET, SOCK_STREAM, 0);
   socket_bind($sock, $address, $port) or die('Unable to bind');
   socket_listen($sock);
   $client = socket_accept($sock);
   echo "connection established: $client";
   socket_close($client);
   socket_close($sock);
?>

When I run the script:

php xdebug.php

I get

PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0

I tried to debug from netbeans, got same warning and netbeans waits for ever on xdebug.

I can comment out line “zend_extension=/usr/lib/php5/20121212/xdebug.so ” in “/etc/php5/apache2/php.ini”, restart apache and run xdebug.php and still get same messge. Like line “zend_extension=/usr/lib/php5/20121212/xdebug.so ” in “/etc/php5/apache2/php.ini” has no impact?

I tried removing all lines I added to “/etc/php5/apache2/php.ini” and it made no difference what so ever.

Mint packager installed xdebug version 2.2.3, I downloaded the latest version 2.2.5 and tried both, not much difference!

I searched for “zend_extension” in all files in /etc and found following file containing “zend_extension”

/etc/alternatives/phpize
/etc/php5/mods-available/opcache.ini
/etc/php5/apache2/conf.d/05-opcache.ini
/etc/php5/apache2/php.ini
/etc/php5/cli/conf.d/05-opcache.ini

However these:

/etc/php5/mods-available/opcache.ini
/etc/php5/apache2/conf.d/05-opcache.ini
/etc/php5/cli/conf.d/05-opcache.ini

have

zend_extension=opcache.so

regardless I tried commenting them all out and it made no difference so I put them back in. I can run small php scripts form the command line with no problem.

I spend two days reading everything I can find regarding “Xdebug MUST be loaded as a Zend extension.” I am at the end of my wit's, overwhelm and have no idea what else to do to make xdebug working? Please advice and help?


Best regards,
Bob


Received on Tue Nov 04 2014 - 17:09:02 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST