http://pecl.php.net/package/oci8
安装oracle安装包
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
安装oci8扩展
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”extentsion=“oci8.so”
以上就介绍了linux下php安装oci8扩展,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。