20090723 installing oci8 to an existing rhelcentos system - plembo/onemoretech GitHub Wiki

title: Installing oci8 to an existing RHEL/CentOS system link: https://onemoretech.wordpress.com/2009/07/23/installing-oci8-to-an-existing-rhelcentos-system/ author: lembobro description: post_id: 277 created: 2009/07/23 19:28:46 created_gmt: 2009/07/23 19:28:46 comment_status: open post_name: installing-oci8-to-an-existing-rhelcentos-system status: publish post_type: post

Installing oci8 to an existing RHEL/CentOS system

The oci8 extension is a module for php that provides client access to Oracle databases. Because Oracle’s libraries are proprietary, neither Red Hat nor any of its downstream beneficiaries can ship with it. As a result you need to build it using the old phpize method. The source code is available from PECL (PHP Extension Community Library).

Steps:

1. Make sure Oracle’s instantclient is installed and that $ORACLE_HOME, $PATH and $LD_LIBRARY_PATH point to it.

2. Download oci8 package from PECL and extract. Current package is oci8-1.3.5.tgz.

3. Execute phpize in source directory.

4. Then do:

./configure -with-oci8=shared,instantclient,$ORACLE_HOME make make install.

5. Add the following line to /etc/php.ini.

extension=oci8.so

6. Recycle Apache (/etc/init.d/httpd restart).

Copyright 2004-2019 Phil Lembo