Unable to load dynamic library php_oci8_11g dll

Please help me to connect the oracle database 11g through Laravel 5.7

Show

I spend 4 days still don't make it out just drive me crazy

My config:

Win7-Sp1-64Bit,Xampp-v3.2.2,PHP-7.2.1,Laravel-5.7.1

I placed the file

 OCI8-php_oci8-2.1.8-7.2-ts-vc15-x64 (oci8.dll,oci8_11r.dll, oci8_12g.dll) 

in xampp/php/ext

I've created Environment Variables in User variables & System variables:

PATH: C:\instantclient_18_3 or C:\instantclient_12_2

TNS_ADMIN: C:\instantclient_18_3 or C:\instantclient_12_2

。Also tried to install:

32bit-instantclient-basic-nt-12.2.0.1.0.zip

32bit-instantclient-basic-nt-12.1.0.2.0.zip

64bit-instantclient-basic-windows.x64-18.3.0.0.0dbru.zip

64bit-instantclient-basic-windows.x64-12.2.0.1.0.zip

OCI8 still can't be loaded in http://localhost/index.php

and I run the command php -m still come out the same result:

Warning: PHP Startup: Unable to load dynamic library 'php_oci8_11g.dll' (tried: C:\xampp\php\ext\php_oci8_11g.dll (%1 is not a valid Win32 application.), C:\xampp\php\ext\php_php_oci8_11g.dll.dll (The specified module could not be found.)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'php_oci8_12c.dll' (tried: C:\xampp\php\ext\php_oci8_12c.dll (%1 is not a valid Win32 application.), C:\xampp\php\ext\php_php_oci8_12c.dll.dll (The specified module could not be found.)) in Unknown on line 0

I have spended almost 4days...Still don't get the way to solve it.

Please help me...

I would like to connect to Oracle database-11g through Laravel 5.7.1

I have created the Environment Variables for Path- C:\instantclient_12_2 and TNS_ADMIN- C:\instantclient_12_2 as well,

put the php_oci8-2.1.8-7.2-ts-vc15-x64 file in xampp/php/ext and

added the extensions in PHP.ini

[Oracle_10]

extension=php_oci8.dll

[Oracle_11g]

extension=php_oci8_11g.dll

[Oracle_12c]

extension=php_oci8_12c.dll

Tried to install Instant Client for Wins 64-bits or 32-bits/18.3 or 12.2 still can't not loaded the php_oci8-2.1.8-7.2-ts-vc15-x64.

What's the problem?

My computer config:

Win7 Sp1-64Bit      PHP 7.2.1   XAMPP v3.22

Bug #79775Unable to load dynamic library 'php_oci8_12c.dll'
Submitted:2020-07-03 12:07 UTC Modified:2020-07-15 06:07 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From:thomas dot wiedmann at laek-bw dot de Assigned:cmb (profile)
Status:Not a bug Package:Oracle related
PHP Version:7.4.7 OS:Windows NT 10.0 build 14393
Private report:No CVE-ID:None

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports

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

I am getting this error when I start my xampp server.

C:\xampp\php\ext\php_oci8.dll' – %1 is not a valid Win32 application.

I downloaded php_oci8-2.0.8-5.6-ts-vc11-x86 and extracted php_oci8.dll into C:\xampp\php\ext directory.

Also, I downloaded instantclient-basic-nt-12.1.0.2.0 (32 bit version) and added the same to the PATH variable of windows.

C:\OracleBasicClient\instantclient-basic-nt-12.1.0.2.0\instantclient_12_1 added to PATH

Still, I'm getting this error and not sure why it is coming.

My windows is 64 bit.

PHP info (xampp)

System Windows NT 6.1 (Windows 7 Professional) i586
Compiler MSVC11 (Visual C++ 2012)
Architecture x86
Thread Safety enabled

What am I possibly doing wrong and how can I fix it?