PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - The specified procedure could not be found

Md Hasibur Rahaman picture Md Hasibur Rahaman · Nov 30, 2017 · Viewed 19.5k times · Source

we face a big problem to connect oracle server in php What i done

  • Setp 1:

    Install Windows 7 32bit

  • Step 2 :

    install XAMPP 32 ( Includes: Apache 2.4.29, PHP 7.1.11, phpMyAdmin 4.7.4, OpenSSL 1.0.2, XAMPP Control Panel 3.2.2)

  • Step :

    Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications Download instantclient-basic-nt-12.2.0.1.0.zip and extract it into c drive with instantclient_12_2 name

  • Step 5:

    Set environment in path "c:\instantclient_12_2"

  • Step 6:

    Edit php.ini file and enable extension=php_oci8_12c.dll (By removing semicolon ) from front

  • Step 7 :

    Restart my apache server , after that when i check phpinfo() it not showing any oci8 module

Then i check my error log i see this

[30-Nov-2017 13:42:43 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - The specified procedure could not be found.

Can any one help me how to resolve this issue ,

Thanks in advance , and sorry for my English.

Answer

timclutton picture timclutton · Dec 1, 2017

On the Instant Client download page, the next line after the download link for instantclient-basic-nt-12.2.0.1.0.zip states:

The 12.2 Basic package requires the Microsoft Visual Studio 2013 Redistributable.

As you haven't listed that in what you've tried, installing it should be your next step.

You should also reboot to ensure that your changes to the environment PATH are applied system wide (e.g. to the Apache service).