title: What's the difference between xdebug.ini and php.ini
body: <p>Recently I installed lamp and php-xdebug on an ubuntu 16.04 box. I noticed that now I have the following files</p>
  
  <pre><code>/etc/php/7.0/apache2/conf.d/20-xdebug.ini
  
  /etc/php/7.0/cli/conf.d/20-xdebug.ini
  
  /etc/php/7.0/mods-available/xdebug.ini
  </code></pre>
  
  <p>I was wandering what is the difference is between these files and settings in  <code>/etc/php/7.0/apache2/php.ini</code> are affected by these.</p>
  
  <p>Also in terms of best practice which of these files should be used?</p>
  
  <p>If configurations are repeated in these files with different values which would take precedence? </p>
  
  <p>For example if <code>xdebug.remote_port = 9000</code> is set in <code>/etc/php/7.0/apache2/php.ini</code> and in <code>/etc/php/7.0/mods-available/xdebug.ini</code> it was set as <code>xdebug.remote_port = 9001</code> which value would be selected?</p>