开发者

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开发者_JAVA百科 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?


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


An annotation: I recently had the task of installing PHP 5 on a Windows system with Oracle HTTP Server 10g. PHP <= 5.0 requires an Oracle 8i or 9i client, PHP >= 5.1 requires an Oracle 10gR2 client or above. The Oracle HTTP Server 10g deploys an Oracle 10gR1 client which is not at all supported by PHP 5 (at least on Windows, maybe one can compile by himself...), but contains PHP 4.3.9 as an Apache module. I couldn't use it: some PHP modules that are required need at least PHP 5.0. Solution was: return to Oracle HTTP Server from the 9i companion CD while running a 10gR2 database in a separate Oracle Home.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜