title: Error running script.php: Port 9000 is busy
body: <p>I set <code>php.ini</code> and <code>Debug config</code> in <code>phpstorm</code>. Trying to debug php script outputs in phpstorm Event log with:</p>
  
  <pre><code>"Error running script.php: Port 9000 is busy"
  </code></pre>
  
  <p>end of php.ini:</p>
  
  <pre><code>        [XDebug]
          zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
          xdebug.remote_enable=1
          xdebug.remote_port="9000" (the default port is 9000)
          xdebug.profiler_enable=1
          xdebug.profiler_enable_trigger = 1
          xdebug.profiler_output_dir="/etc/php5/xdebug/profiler_output_dir"
  </code></pre>
  
  <p>Debug port in pStorm is also set on 9000.  <code>netstat -na</code> outputs with:</p>
  
  <pre><code>tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN 
  </code></pre>
  
  <p>What if I set to other port. eg setting it to <code>10001</code> seems to do the job. Or just how to make it work properly. I am not sure if I understand how the <code>xDebug</code> works. Its like running <code>Debug("script.php")(Shift+F9)</code> in phpstorm with set breakpoint in file ?</p>
  
  <p>Does somebody have an idea ?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>From:
  <a href="http://xdebug.org/docs/remote">http://xdebug.org/docs/remote</a></p>
  
  <pre><code>xdebug.remote_port
  Type: integer, Default value: 9000
  The port to which Xdebug tries to connect on the remote host. Port 9000 is the default for both the client and the bundled debugclient. As many clients use this port number, it is best to leave this setting unchanged.
  </code></pre>
  
  <p>What if I change port for other than 9000 ? Maybe something over 50k .</p>