title: Apache on Windows cant find php extensions
body: <p>I have Apache 2.4 and php installed on Windows Server 2012. </p>
  
  <p>Im trying to load the <code>php_ldap.dll</code> extension. </p>
  
  <p>Here's what Ive done:</p>
  
  <p>In <code>php.ini</code> I set the following:</p>
  
  <pre><code>extension_dir = "C:\php\ext"
  
  extension=php_ldap.dll
  </code></pre>
  
  <p>Then, I made sure the dll was available at that path, yep, it's there:</p>
  
  <p><a href="https://i.stack.imgur.com/f55tA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f55tA.png" alt="enter image description here"></a></p>
  
  <p><code>phpinfo</code> shows that I am editing the correct <code>php.ini</code> and the <code>extension_dir</code> is updated.</p>
  
  <p>However, when I start Apache, <code>php_ldap.dll</code> is not loaded.</p>
  
  <p>The Apache logs show this warning:</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_ldap.dll' - The specified module could not be found.\r\n in Unknown on line 0
  </code></pre>
  
  <p><strong>How can I fix this?</strong></p>
  
  <p>Also, what's with the <code>\\</code>? Why is it doubling the "\" and is that the problem?</p>