您的位置:首页 > 数据库 > Oracle

Installing PHP and the Oracle 10g Instant Client

2006-09-05 15:20 302 查看
Linux 9 and instant clinet 10.1.0.5
Note: 10.2.0.2 is higher version for Linux9 There would be error: version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference

Steps:
1 Download clinet 10.1.0.5, two parts one is basic, and the other is sdk, two zip file
2 unzip the files
3 create a folder for client
3' apache (based on your requirements)
./configure --with-oci8-instant-client --prefix=/usr/local/lib/php --with-apxs=/usr/local/apache2/bin/apxs --enable-sigchild --with-config-file-path=/usr/local/apache2/conf

4 Rebuild the "configure" script in the top-level PHP directory.
cd php-
rm -rf config.cache
./buildconf --force
5 Run configure with the new option. This example uses Apache installed in the home directory.
Think about your mysql if you have.

cd php
./configure /
--with-mysql=/usr/local/mysql --with-susexec --enable-so --enable-rewrite=shared /
--with-oci8=instantclient,/usr/lib/oracle/10.2.0.2/client/lib /
--prefix=/usr/local/lib/php --with-apxs2=/usr/local/apache2/bin/apxs /
--enable-sigchild --with-config-file-path=/usr/local/apache2/conf
6 Rebuild PHP.
make
make install

7 test with
OCILogon(oracleusername, password, remoteserver) eg: //10.10.10.21:1522/ora10g

Good luck.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: