I am having trouble with PHP extensions. I am trying to run a script and nothing happens then I checked my error log and here is what I got:
PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_oci8.dll' - The specified module could not be found. in Unknown on line 0
same goes for following files:
php_oci8_11g.dll
php_pdo_oci.dll
php_sybase_ct.dll
php_com_dotnet.dll
every file except php_com_dotnet.dll was installed with PHP installation, all the files are enabled in php.ini configuration. After researching online I saw some people said that it has to be copied to system32 or sysWOW64 folder, which I did without success. Then I tried to register them using regsvr32 in cmd and I am getting error for every single file:
"The module name_of_the_module.dll failed to load"
I don't understand what am I doing wrong.
Server configuration is Windows 2008 R2 64bit, IIS7, PHP 5.3.27
Best Answer
PHP cannot load a DLL file, if the file cannot be found OR the library has a dependency that cannot be found. If the file is in correct location, there are probably dependent libraries that cannot be loaded.
E.g. (for OCI8, from http://www.php.net/manual/en/oci8.requirements.php):