Hi,
Post by danishbackeri 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.