views:

358

answers:

1

Greetings!

I've been trying to install xdebug on xampp (running on xubuntu) to use with NetBeans 6.7, but after several attemps I'm really stuck.

When I try to verify installation with this script:

<?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); ?>

... I get :

Failed loading /opt/lampp/lib/php/extensions/xdebug.so: /opt/lampp/lib/php/extensions/xdebug.so: wrong ELF class: ELFCLASS64

The config in /opt/lampp/etc/php.ini looks like this:

zend_extension = /opt/lampp/lib/php/extensions/xdebug.so

;zend_extension = "/usr/lib/php5/20060613/xdebug.so" ; /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so

xdebug.profiler_output_dir = /tmp/xdebug/ xdebug.profiler_enable = On xdebug.remote_enable=on xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler=dbgp xdebug.idekey=netbeans-xdebug

I tried to go by several tutorial as well as xdebug install guide and at this point my brain is just fried. I've not seen that particular issue.

Thanks in advance.

A: 

... never mind. Figured it out.

vector