title: PHP Startup: Unable to load dynamic library 'sqlsrv_7_ts_x64'
body: <p>I am trying to install Apache, MySQL, and PHP on a Windows 2008 server (trial run, will move to 2012 when available).</p>
  
  <ul>
  <li>Apache 2.4.39 </li>
  <li>PHP 7.2.18</li>
  <li>MySQL 5.7.26</li>
  </ul>
  
  <p>Actually have this portion working.  </p>
  
  <p>Need to add the capability to access a Microsoft SQL database.  Have installed SQLSRV40.<br>
  extension_dir is extension_dir ="c:/wamp64/bin/php/php7.2.18/ext/"
  .dlls are in extension_dir.
  php_pdo_sqlsrv_7_ts_x64.dll
  php_pdo_sqlsrv_7_nts_x64.dll
  php_sqlsrv_7_ts_x64.dll
  php_sqlsrv_7_nts_x64.dll</p>
  
  <p>Added these statements to php.ini:
      ; Adding extensions for accessing SQL databases
      ;extension=php_pdo_sqlsrv_7_ts_x64.dll
      ;extension=php_pdo_sqlsrv_7_nts_x64.dll
      ;extension=php_sqlsrv_7_ts_x64.dll
      ;extension=php_sqlsrv_7_nts_x64.dll
      extension=sqlsrv_7_ts_x64</p>
  
  <p>Restarting Apache with php.ini configured as above results in:
  [30-Oct-2019 19:11:23 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'sqlsrv_7_ts_x64' (tried: c:/wamp64/bin/php/php7.2.18/ext/sqlsrv_7_ts_x64 (The specified module could not be found.), c:/wamp64/bin/php/php7.2.18/ext/php_sqlsrv_7_ts_x64.dll (The specified procedure could not be found.)) in Unknown on line 0
  [30-Oct-2019 19:11:24 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'sqlsrv_7_ts_x64' (tried: c:/wamp64/bin/php/php7.2.18/ext/sqlsrv_7_ts_x64 (The specified module could not be found.), c:/wamp64/bin/php/php7.2.18/ext/php_sqlsrv_7_ts_x64.dll (The specified procedure could not be found.)) in Unknown on line 0</p>
  
  <p>Using the extensions with php at the beginning and .dll at the end results in:
  [30-Oct-2019 19:03:15 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_7_ts_x64.dll' (tried: c:/wamp64/bin/php/php7.2.18/ext/php_pdo_sqlsrv_7_ts_x64.dll (The specified procedure could not be found.), c:/wamp64/bin/php/php7.2.18/ext/php_php_pdo_sqlsrv_7_ts_x64.dll.dll (The specified module could not be found.)) in Unknown on line 0
  [30-Oct-2019 19:03:15 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_7_nts_x64.dll' (tried: c:/wamp64/bin/php/php7.2.18/ext/php_pdo_sqlsrv_7_nts_x64.dll (The specified module could not be found.), c:/wamp64/bin/php/php7.2.18/ext/php_php_pdo_sqlsrv_7_nts_x64.dll.dll (The specified module could not be found.)) in Unknown on line 0
  [30-Oct-2019 19:03:15 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'php_sqlsrv_7_ts_x64.dll' (tried: c:/wamp64/bin/php/php7.2.18/ext/php_sqlsrv_7_ts_x64.dll (The specified procedure could not be found.), c:/wamp64/bin/php/php7.2.18/ext/php_php_sqlsrv_7_ts_x64.dll.dll (The specified module could not be found.)) in Unknown on line 0
  [30-Oct-2019 19:03:15 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'php_sqlsrv_7_nts_x64.dll' (tried: c:/wamp64/bin/php/php7.2.18/ext/php_sqlsrv_7_nts_x64.dll (The specified module could not be found.), c:/wamp64/bin/php/php7.2.18/ext/php_php_sqlsrv_7_nts_x64.dll.dll (The specified module could not be found.)) in Unknown on line 0</p>
  
  <p>Filenames have been verified as correct.
  Apache user has been verified as having access to the ext folder and those files.</p>
  
  <p>Using the tool that came with Wampserver to via active PHP extensions, all four show as active whether they are commented out or not.
  php_pdo_sqlsrv_7_ts_x64
  php_pdo_sqlsrv_7_nts_x64
  php_sqlsrv_7_ts_x64
  php_sqlsrv_7_nts_x64</p>
  
  <p>Any ideas?</p>