Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP (WAMP) OCI8 driver setup problem

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?

like image 734
wannabenerd Avatar asked Jan 29 '26 10:01

wannabenerd


1 Answers

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

like image 75
Powerlord Avatar answered Feb 01 '26 00:02

Powerlord



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!