title: PhpStorm is not receiving xdebug connections : PhpStorm event log : Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])'
body: <p>I configured everything for PhpStorm and xdebug to work, I'm running Ubuntu 14.04. </p>
  
  <p>the connection back to the IDE is not established, and I get this in the IDE event Log  </p>
  
  <p><strong>Cannot accept external Xdebug connection: Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])' –  Osama Salama 13 mins ago</strong>   </p>
  
  <p>I'll put together configuration values I configured in various places. As I can't find out where is the problem </p>
  
  <p>php.ini</p>
  
  <pre><code>zend_extension = /usr/lib/php5/20121212/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
  xdebug.remote_connect_back = 1
  xdebug.remote_autostart = 1
  xdebug.remote_log=xxx/xdebug.log
  xdebug.IDE_key=PHPSTORM
  </code></pre>
  
  <p>PHP info</p>
  
  <p>xdebug</p>
  
  <pre><code>xdebug support  enabled
  Version 2.3.1
  IDE Key PHPSTORM
  
  Supported protocols Revision
  DBGp - Common DeBuGger Protocol $Revision: 1.145 $
  
  Directive   Local Value Master Value
  
  xdebug.auto_trace   Off Off
  xdebug.cli_color    0   0
  xdebug.collect_assignments  Off Off
  xdebug.collect_includes On  On
  xdebug.collect_params   0   0
  xdebug.collect_return   Off Off
  xdebug.collect_vars Off Off
  xdebug.coverage_enable  On  On
  xdebug.default_enable   On  On
  xdebug.dump.COOKIE  no value    no value
  xdebug.dump.ENV no value    no value
  xdebug.dump.FILES   no value    no value
  xdebug.dump.GET no value    no value
  xdebug.dump.POST    no value    no value
  xdebug.dump.REQUEST no value    no value
  xdebug.dump.SERVER  no value    no value
  xdebug.dump.SESSION no value    no value
  xdebug.dump_globals On  On
  xdebug.dump_once    On  On
  xdebug.dump_undefined   Off Off
  xdebug.extended_info    On  On
  xdebug.file_link_format no value    no value
  xdebug.force_display_errors Off Off
  xdebug.force_error_reporting    0   0
  xdebug.halt_level   0   0
  xdebug.idekey   no value    no value
  xdebug.max_nesting_level    256 256
  xdebug.max_stack_frames -1  -1
  xdebug.overload_var_dump    On  On
  xdebug.profiler_aggregate   Off Off
  xdebug.profiler_append  Off Off
  xdebug.profiler_enable  Off Off
  xdebug.profiler_enable_trigger  Off Off
  xdebug.profiler_enable_trigger_value    no value    no value
  xdebug.profiler_output_dir  /tmp    /tmp
  xdebug.profiler_output_name cachegrind.out.%p   cachegrind.out.%p
  xdebug.remote_autostart On  On
  xdebug.remote_connect_back  On  On
  xdebug.remote_cookie_expire_time    3600    3600
  xdebug.remote_enable    On  On
  xdebug.remote_handler   dbgp    dbgp
  xdebug.remote_host  127.0.0.1   127.0.0.1
  xdebug.remote_log   /home/nautilus/Desktop/xdebug.log   /home/nautilus/Desktop/xdebug.log
  xdebug.remote_mode  req req
  xdebug.remote_port  9000    9000
  xdebug.scream   Off Off
  xdebug.show_exception_trace Off Off
  xdebug.show_local_vars  Off Off
  xdebug.show_mem_delta   Off Off
  xdebug.trace_enable_trigger Off Off
  xdebug.trace_enable_trigger_value   no value    no value
  xdebug.trace_format 0   0
  xdebug.trace_options    0   0
  xdebug.trace_output_dir /tmp    /tmp
  xdebug.trace_output_name    trace.%c    trace.%c
  xdebug.var_display_max_children 128 128
  xdebug.var_display_max_data 512 512
  xdebug.var_display_max_depth    3   3
  </code></pre>
  
  <p><strong>I also validated the remote debugging env. it's all good.</strong> <a href="https://www.jetbrains.com/phpstorm/help/validating-the-configuration-of-a-debugging-engine.html">https://www.jetbrains.com/phpstorm/help/validating-the-configuration-of-a-debugging-engine.html</a> which also came out fine.</p>
  
  <p><strong>The last possible resort is the xdebug log file:</strong></p>
  
  <pre><code>Log opened at 2015-03-13 14:39:01
  I: Checking remote connect back address.
  W: Remote address not found, connecting to configured address/port: 127.0.0.1:9000. :-|
  I: Connected to client. :-)
  -&gt; &lt;init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="dbgp://stdin" language="PHP" protocol_version="1.0" appid="4474"&gt;&lt;engine version="2.3.1"&gt;&lt;![CDATA[Xdebug]]&gt;&lt;/engine&gt;&lt;author&gt;&lt;![CDATA[Derick Rethans]]&gt;&lt;/author&gt;&lt;url&gt;&lt;![CDATA[http://xdebug.org]]&gt;&lt;/url&gt;&lt;copyright&gt;&lt;![CDATA[Copyright (c) 2002-2015 by Derick Rethans]]&gt;&lt;/copyright&gt;&lt;/init&gt;
  &lt;- feature_set -i 1 -n show_hidden -v 1
  -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="show_hidden" success="1"&gt;&lt;/response&gt;
  &lt;- feature_set -i 2 -n max_depth -v 1
  -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_depth" success="1"&gt;&lt;/response&gt;
  &lt;- feature_set -i 3 -n max_children -v 100
  -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="max_children" success="1"&gt;&lt;/response&gt;
  &lt;- status -i 4
  -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="status" transaction_id="4" status="starting" reason="ok"&gt;&lt;/response&gt;
  &lt;- step_into -i 5
  -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="5" status="stopping" reason="ok"&gt;&lt;/response&gt;
  &lt;- eval -i 6 -- aXNzZXQoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
  -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="eval" transaction_id="6"&gt;&lt;error code="5"&gt;&lt;message&gt;&lt;![CDATA[command is not available]]&gt;&lt;/message&gt;&lt;/error&gt;&lt;/response&gt;
  Log closed at 2015-03-13 14:39:01
  </code></pre>