title: sqlite3 and pdo_sqlite not loaded in php apache2 localhost but loaded in php cmd window
body: <h2>Problem description</h2>
  
  <p>I use Windows 10 OS. I have installed Apache 2.4 in <code>C:/Apache24</code> and <code>PHP7.4.1 in C:/php7</code>. In the configuration file of Apache, httpd.conf, I appended the following</p>
  
  <pre><code>    LoadModule php7_module "c:/php7/php7apache2_4.dll"
      #&lt;FilesMatch \.php$&gt;
      #   SetHandler application/x-httpd-php
      #&lt;/FilesMatch&gt;
      AddType application/x-httpd-php .php
      PHPIniDir "C:/php7" 
  </code></pre>
  
  <p>I also have modified the php.ini file of php in the following way:</p>
  
  <pre><code>     extension_dir = C:\php7\ext
       extension=bz2
       extension=curl
       ;extension=ffi
       extension=fileinfo
       extension=gd2
       extension=gettext
       extension=gmp
       extension=intl
       extension=imap
       ;extension=ldap
       extension=mbstring
       extension=exif      ; Must be after mbstring as it depends on it
       extension=mysqli
       ;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
       ;extension=odbc
       extension=openssl
       ;extension=pdo_firebird
       extension=pdo_mysql
       ;extension=pdo_oci
       extension=pdo_odbc
       extension=pdo_pgsql
       extension=pdo_sqlite
       extension=pgsql
       extension=shmop
       ; The MIBS data available in the PHP distribution must be installed.
       ; See http://www.php.net/manual/en/snmp.installation.php
       ;extension=snmp
       extension=soap
       extension=sockets
       ;extension=sodium
       extension=sqlite3
       extension=tidy
       extension=xmlrpc
       extension=xsl
  </code></pre>
  
  <p>and still in php.ini I have also modified</p>
  
  <pre><code>     [sqlite3]
       ; Directory pointing to SQLite3 extensions
       ; http://php.net/sqlite3.extension-dir
       sqlite3.extension_dir = C:\Apache24\htdocs
  </code></pre>
  
  <p>Then I have restarted apache several tens of times and the PC once.</p>
  
  <h2>Problem:</h2>
  
  <p>I have made a 'index.php' file and placed it in 'c:/apache24/htdocs' which has the following text in it: </p>
  
  <pre><code>    &lt;?php phpinfo(); ?&gt;
  </code></pre>
  
  <p>Going to 'localhost' in Chrome Web browser I see the PHP info file. However, ---> it does not have sqlite3 nor pdo_sqlite enabled &lt;---. However, running 'php -m' in comand window, it shows that sqlite3 and pdo_sqlite are loaded. Furthermore, in localhost PHP info says that it uses the loaded configuration file found here 'C:\php7\php.ini' hich is indeed the right one. </p>
  
  <p>I have no other idees, why sqlite3 or pdo_sqlite is not visible in apache2 but visible in com window, especially bue to the fact that it uses the same php.ini file.   </p>
  
  <h2>Update</h2>
  
  <p>Checking the 'error.log' file from <code>Apache24\logs</code> I can see that the following warning:</p>
  
  <p><code>PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: C:\\php7\\ext\\pdo_sqlite (The specified module could not be found.), C:\\php7\\ext\\php_pdo_sqlite.dll (The specified module could not be found.)) in Unknown on line 0
  </code> However, <code>php_pdo_sqlite.dll</code> can be seen in <code>c:\php7\ext</code> using the Windows 10 explorer, but on the other hand <code>C:\\php7\\ext</code> is not a valid path for the windows explorer. I do not know if double backslashes are used just for printing or indeed it searches at that path. However cmd is not bothered by double backslashes. I really do not know what to think!</p>