Environment System: CentOS6PHP: 5.3.28 download Oracle client 32-bit System 64-bit System oracle-instantclient-sqlplus-10.2.0.4-1.x86_64.rpmoracle-instantclient-jdbc-10.2.0.4-1.x86_64.rpmoracle-instantclient-devel-10.2.0.4-1.x86_64.rpmoracle-instantclient-basi
Environment System: CentOS 6 PHP: 5.3.28 download Oracle client 32-bit System 64-bit System oracle-instantclient-sqlplus-10.2.0.4-1.x86_64.rpmoracle-instantclient-jdbc-10.2.0.4-1.x86_64.rpmoracle-instantclient-devel-10.2.0.4-1.x86_64.rpmoracle-instantclient-basi
Environment
System: CentOS 6
PHP: 5.3.28
Download the Oracle client
32-bit System
64-bit System
oracle-instantclient-sqlplus-10.2.0.4-1.x86_64.rpmoracle-instantclient-jdbc-10.2.0.4-1.x86_64.rpmoracle-instantclient-devel-10.2.0.4-1.x86_64.rpmoracle-instantclient-basic-10.2.0.4-1.x86_64.rpm
Install:
# rpm -ivh *.rpm
Download the PHP extension of Oracle
Official download
wget http://pecl.php.net/get/oci8-2.0.7.tgz# tar zxvf oci8-2.0.7.tgz# cd oci8-2.0.7# /usr/local/php/bin/phpize# ./configure --with-php-config=/usr/local/php/bin/php-config --with-oci8=shared,instantclient,/usr/lib/oracle/10.2.0.4/client64/lib/# make && make install
Change php. ini
# vi /usr/local/php/etc/php.ini
Addextension = "oci8.so"
Restart PHP
ps aux | grep php | grep rootkill -USER2 php_root_pid
Original article address: [reorganize] The Oracle extension installed in PHP. Thank you for sharing it with me.