Home  >  Article  >  Backend Development  >  Install oci8 extension in php under linux

Install oci8 extension in php under linux

WBOY
WBOYOriginal
2016-08-08 09:21:261319browse

http://pecl.php.net/package/oci8

Install the oracle installation package

rpm -ivh oracle-instantclient11.2-basic-11.2.0.1.0-1.i386.rpm

rpm -ivh oracle -instantclient11.2-devel-11.2.0.1.0-1.i386.rpm

rpm -ivh oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.i386.rpm

Install oci8 extension

tar zxvf oci8-1.4.1.tgz

cd oci8-1.4.1

/usr/bin/phpize

./configure --with-php-c/bin/php-config --with-oci8=shared, instantclient,/usr/lib/oracle/11.2/client/lib

make

make install

extenti/usr/lib/php/modules”

extension=“oci8.so”

The above introduces the installation of oci8 extension in PHP under Linux, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn