PHP extensions not found via httpd but are found from CLI, with the same php.ini
问题 I wanted to use some extensions of PHP 7.1 after installing it and Apache 2.4 and on my Windows 7. I wrote a small test script index.php to call some functions of the given extensions. <?php var_dump(mb_strlen('p')); var_dump(mysqli_connect_error()); and uncommented the appropriate lines from the php.ini , like ... ;extension=php_ldap.dll extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it extension=php_mysqli.dll ;extension=php_oci8_12c.dll ; Use