Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
installing_the_php_oci_driver_for_oracle [2014/09/12 10:29] – [Getting Started] 1allen | installation:php_oci [2016/08/10 14:34] – [PHP OCI Driver for Oracle] demiankatz |
---|
====== PHP OCI Driver for Oracle ====== | ====== PHP OCI Driver for Oracle ====== |
| |
| :!: // This documentation refers to VuFind 3.0.x and earlier; with release 3.1, the dependency on the troublesome PDO_OCI driver was removed. // |
| |
If you are using Voyager or another ILS that requires an Oracle connection, you will need to install the PHP OCI Driver for Oracle. This page contains instructions on how to do this on several different platforms. First read the general notes, then skip to the section for your operating system. | If you are using Voyager or another ILS that requires an Oracle connection, you will need to install the PHP OCI Driver for Oracle. This page contains instructions on how to do this on several different platforms. First read the general notes, then skip to the section for your operating system. |
==== Getting Started ==== | ==== Getting Started ==== |
| |
Regardless of platform, you will need to download the [[http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html|Oracle Instant Client]] (at a minimum you need Basic and SDK zip files). You will need to accept a license agreement and log in to Oracle's site (free account creation) in order to download the files. Be sure to select the appropriate file versions for your hardware and | Regardless of platform, you will need to download the [[http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html|Oracle Instant Client]] (at a minimum you need Basic and SDK zip files). // You may need to do a Google search for the SDK; as of this writing, it is hard to find within the Oracle site. // You will need to accept a license agreement and log in to Oracle's site (free account creation) in order to download the files. Be sure to select the appropriate file versions for your hardware. |
| |
| ==== IMPORTANT ==== |
| |
| Throughout this documentation, the version number 11.1 is assumed for your instantclient. If you have a newer version, you will have to remember to change all instances of 11.1 to the appropriate version (11.2, 12.1, etc.). |
===== Fedora ===== | ===== Fedora ===== |
| |
| |
<code bash> | <code bash> |
sed -i -e 's/function_entry pdo_oci_functions/zend_function_entry pdo_oci_functions/' pdo_oci.c | sudo sed -i -e 's/function_entry pdo_oci_functions/zend_function_entry pdo_oci_functions/' pdo_oci.c |
</code> | </code> |
| |
1. Extract the Oracle Instant Client files from the zip archives ([[#General_Notes|see above]] for download location) to c:\instantclient_11_1\. | 1. Extract the Oracle Instant Client files from the zip archives ([[#General_Notes|see above]] for download location) to c:\instantclient_11_1\. |
| |
2. Add the c:\instantclient_11_1\ directory to your system path as described above under the [[installation_windows#install_the_java_jdk|Java JDK]] step. Be sure you insert the Instant Client directory BEFORE any other Oracle paths in the path list. | 2. Add the c:\instantclient_11_1\ directory to your system path as described above under the [[legacy:installation:windows#install_the_java_jdk|Java JDK]] step. Be sure you insert the Instant Client directory BEFORE any other Oracle paths in the path list. |
| |
3. Run the PHP installer and add the "Oracle (8)" and "PDO / Oracle10g Client and Above" extensions. | 3. Run the PHP installer and add the "Oracle (8)" and "PDO / Oracle10g Client and Above" extensions. |