@H_5020@环境
@H502_0@System:CentOS 6
PHP: 5.3.28
@H_5020@
下载Oracle客户端
@H502_0@<a target="_blank" href="http://www.oracle.com/technetwork/topics/linuxsoft-082809.html">32位系统 @H_502_0@
代码如下:
sqlplus-10.2.0.4-1.x86_64.rpm
oracle-instantclient-jdbc-10.2.0.4-1.x86_64.rpm
oracle-instantclient-devel-10.2.0.4-1.x86_64.rpm
oracle-instantclient-basic-10.2.0.4-1.x86_64.rpm
@H_502_0@执行安装:
代码如下:
下载Oracle的PHP扩展
@H_502_0@
代码如下:
# 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
更改php.ini
代码如下:
PHP/etc/PHP.ini
增加 extension = "oci8.so"
@H_502_0@重新启动PHP
代码如下:
PHP | grep root
kill -USER2 PHP_root_pid