title: PhpStorm - Remote debugging with xDebug
body: <p>OK, first things first.
  I started working on a new PHP project which, as in many cases, to put it mildly, built terribly. It is not possible, at this point, to copy the project to a local machine so I forced to work via FTP.</p>
  
  <p>I would like to set up remote debugging, so the code will run remotely but I will be able to debug it locally.</p>
  
  <p>The server is Amazon Linux, Apache, PHP 5.3.29 with xDebug v2.2.3.</p>
  
  <p>php.ini:</p>
  
  <pre><code>zend_extension=/usr/lib64/php/modules/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
  </code></pre>
  
  <p>I am trying to make in happen, according to many tutorials from the web, but it seems I am doing something wrong.</p>
  
  <p>Somebody knows a working step-by-step configuration so I can set this up and forget?</p>