Whenever I install on a new Linux machine: "php xdebug" and netbeans
I run these simple steps and I have always been able to integrate xdebug integration into netbeans.
Therefore, with the data that you provide, I can only help you solve half of your problem.
Allow connection to Linux machines :
Installation with pecl:
# apt-get install php5-dev php-pear
# pecl install xdebug
Or direct installation:
# apt-get install php5-xdebug
find library:
# find / -name 'xdebug.so'
/usr/lib/php5/20090626+lfs/xdebug.so
Edit phi.ini file:
...
zend_extension = / usr / lib / php5 / 20090626 + lfs / xdebug.so
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_mode = req
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9000
...
Restart the web server in your case: Apache
$ / etc / init.d / apache2 restart
According to what you posted:
Install NetBeans on Ubuntu 12.04 LTS.
I used the "apt-get" installation method for the ".deb" distributions. If you use the ".rpm" distribution, you can do the same with "yum"
Many of these commands are undoubtedly simplified in xampp.
But if you execute these commands from the console, this will not affect the final result.
Another important note about Windows machines and Linux machines,
You should verify that your firewall rules allow you to connect to netbeans on xdebug.
source share