Install php_oci8.dll extension

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
webatzman
Forum Newbie
Posts: 4
Joined: Thu Oct 03, 2002 4:45 pm
Location: mexico
Contact:

Install php_oci8.dll extension

Post by webatzman »

How set up the php_oci8.dll in W2000 Advanced Server, the Oracle DB 8i and Apache 1.3.x is running and PHP 4.2.2 is running.
All in the server (local -host 127.0.0.1- ).
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

  • read http://www.php.net/manual/en/ref.oci8.php
  • pay extra attention to
    You will need the Oracle8 client libraries to use this extension.
    Before using this extension, make sure that you have set up your Oracle environment variables properly for the Oracle user, as well as your web daemon user. The variables you might need to set are as follows:
    ....
  • open php.ini (probably in c:\winnt)
  • check if extension_dir is set to the proper directory (i.e. extension_dir=c:/programme/php423/extensions - that's where the extensions are located at my pc)
  • uncomment the extension-line (extension=php_oci8.dll)
  • make sure that older oracle-module is disabled (;extension=php_oracle.dll or not in php.ini at all)
  • restart apache
Hope it really is that simple ;)
Post Reply