PHP (WAMP) OCI8 driver setup problem

11,422

The Oracle OCI8 driver also requires that the Oracle Instant Client 10gR2 (aka 10.2.x) libraries or newer be installed on the machine PHP is running on. It is recommended you use either the Basic or Basic Lite version depending on if you need the internationalization libraries or not.

Win32 Instant Client Download Page
Win64 Instant Client Download Page

Share:
11,422
wannabenerd
Author by

wannabenerd

Updated on June 23, 2022

Comments

  • wannabenerd
    wannabenerd almost 2 years

    Greetings,

    I need to install oci8 drivers for PHP, but I’m having some trouble.

    I already have a WAMP install, which comes with the oci8 extension, and have done the following in effort to set it up:

    1. Enabled the extension by adding the following to my php.ini file in my Apache docroot as a local variable:
      [PHP_OCI8]
      extension=php_oci8.dll
    2. Added my extensions directory path to my PATH environment variable on windows (c:/wamp/bin/php/php5.3.0/ext/;)
    3. Added the same extensions directory to my php.ini file

    When I start up my wamp I see the following error message:

    1. PHP Startup: Unable to load dynamic library ‘c:/wamp/bin/php/php5.3.0/ext/php_oci8.dll’

    I’m able to verify that the above path is correct, and am tempted to say that there’s something wrong with the .dll, but I’m not sure.

    Has anyone experienced similar issues?

  • Powerlord
    Powerlord over 13 years
    @wannabenerd: I have no clue on that one... it might be worth asking another question about, though.
  • wannabenerd
    wannabenerd over 13 years
    Looks like this was something in the php.ini file which was edited at some point in the process. Seems like there is a filter that Apache was applying and this was a setting somewhere in the php.ini file. Not sure where it was, but starting fresh from a "clean" php.ini file solved the problem. Thanks again for the help!