Discussion:
problem with xdebug(Port Error)
danishbacker
2011-09-14 15:09:00 UTC
Permalink
Hi, can you post your solution here ?

in my case the error came again even after chaging to new port number from 9000 to 9003

please help me.
Paolo Scarabelli
2011-09-14 19:35:43 UTC
Permalink
Hi,
Post by danishbacker
Hi, can you post your solution here ?
in my case the error came again even after chaging to new port number from 9000 to 9003
please help me.
Can you post some details about your problem? I'm a mailing list
subscriber (as are many others) and I don't see the other messages in
this thread.

Regards,

Paolo
danishbacker
2011-09-15 07:45:45 UTC
Permalink
i was trying to make xdebug working in netbeans,
i'm using netbeans 7.0.1 and xdebug 2.0 and php 5.3 in ubuntu 10.4

but after installation of xdebug, when i debug project in nb it says "port 9000 is already occupied configure ide to use another port"

and after googling acccoring to some post i changed the port to 9003

once i changed port to 9003 in xdebug.ini, netbeans and php.ini but after restarting the ide it is again saying the same thing
now it is using port 9003 so error "port 9003 is already occupied configure ide to use another port"

hope you got my problem

Thanks for reply
Paolo Scarabelli
2011-09-15 09:21:54 UTC
Permalink
Hi,
Post by danishbacker
i was trying to make xdebug working in netbeans,
i'm using netbeans 7.0.1 and xdebug 2.0 and php 5.3 in ubuntu 10.4
but after installation of xdebug, when i debug project in nb it says "port 9000 is already occupied configure ide to use another port"
and after googling acccoring to some post i changed the port to 9003
once i changed port to 9003 in xdebug.ini, netbeans and php.ini but after restarting the ide it is again saying the same thing
now it is using port 9003 so error "port 9003 is already occupied configure ide to use another port"
Hi, I'm using debian so I have a very similar setup.

I think you should first try to find out what service is running on port
9000-9003, try using:

$ netstat -pan|grep tcp

or:

$ lsof -i


Also, did you install xdebug from the ubuntu repositories or manually
from source?

If you installed from the repository the xdebug settings are in:

/etc/php5/apache2/conf.d/xdebug.ini

In this case do not add xdebug settings in php.ini, edit xdebug.ini.


Mine contains the following lines:

xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.show_local_vars=1


Installing from the repository is highly recommended because it's sure
to be compatible with your php version.


If everything fails you may try reinstall following tutorial in
netbeans.org:

http://netbeans.org/kb/docs/php/configure-php-environment-ubuntu.html


Regards,


Paolo.

Loading...