title: How to force PHP to take the correct php.ini?
body: <p>I have two PHP versions on a Windows Server -- <code>v5</code> and <code>v7</code>. The problem is, that PHP 7 tries to use the <code>php.ini</code> of PHP 5:</p>
  
  <pre><code>$ php -v
  PHP 7.0.2 (cli) (built: Jan  6 2016 12:59:59) ( NTS )
  Copyright (c) 1997-2015 The PHP Group
  Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
  $ php --ini
  Configuration File (php.ini) Path: C:\Windows
  Loaded Configuration File:         D:\path\to\php5\php.ini
  Scan for additional .ini files in: (none)
  Additional .ini files parsed:      (none)
  </code></pre>
  
  <p><strong>How to set the correct <code>php.ini</code> for PHP 7?</strong></p>