Home >Backend Development >PHP Tutorial >Install oci8 extension in php under linux
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.