title: Xdebug for remote server not connecting - netbeans
body: <p>I'm trying to use XDebug in the following scenario</p>
  
  <ul>
  <li>my computer Windows 7, Netbeans 6.9</li>
  <li>Physical Host at computer on the same network (Windows 7) with virtual Box</li>
  <li>Virtual CentOS 6.2, with Apache server 2.2.15 and PHP 5.3.3</li>
  <li>the PHP code of my website is on a shared folder on CentOS, in /var/www/html/mysite and have separate and can access it by server ip <code>192.168.1.240</code></li>
  <li>Edited C:\Windows\System32\drivers\etc\hosts <code>192.168.1.240 mysite</code></li>
  <li>the PHP code is accessible from my Windows host, on <code>\\HostIP\html\mysite</code>, with R/W permissions</li>
  </ul>
  
  <p>I created a Netbeans project on my computer, pointing to <code>\\HostIP\html\mysite</code>. In the project Run configuration, I have the following:</p>
  
  <ul>
  <li>Run as: Remote Web Site</li>
  <li>Project URL: <code>http://mysite/</code></li>
  <li>Index file: index.php (does exist in the project)</li>
  </ul>
  
  <p>In the Advanced Run Configuration:</p>
  
  <ul>
  <li>I checked "Default" </li>
  <li>I haven't touched the proxy settings</li>
  </ul>
  
  <p>I have the following in the php.ini on my CentOS VM</p>
  
  <pre><code>;extension=xdebug.so
  zend_extension="/usr/lib64/php/modules/xdebug.so"
  xdebug.remote_enable=on
  xdebug.remote_log="/var/log/xdebug.log"
  ;xdebug.remote_host=192.168.1.31
  xdebug.remote_connect_back=1
  xdebug.remote_handler=dbgp
  xdebug.remote_port=9000
  </code></pre>
  
  <p>note: I tried the configurations with <code>extension=xdebug.so</code> and tried commenting <code>xdebug.remote_connect_back=1</code> with uncomment <code>xdebug.remote_host=192.168.1.31</code> which is my computer ip address.</p>
  
  <p>so basically i have all the configurations like this image
  <img src="https://i.stack.imgur.com/irvsi.gif" alt="enter image description here"></p>
  
  <p>but still not working! after run the debugger will open this url</p>
  
  <pre><code>http://mysite/index.php?XDEBUG_SESSION_START=netbeans-xdebug
  </code></pre>
  
  <p>and nothing will happened just netbeans Listing waiting for Xdebug connection </p>