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.
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.
相关文章推荐
- Installing PHP and the Oracle Instant Client for Linux and Windows For PHP 5.5, OCI8 2.0 and Oracle
- The Oracle JDeveloper 10g PHP Extension
- MS bug "The connection pool" in Oracle 10g and the data sort according to specified filed on DataGrid control.
- PHP 5, Oracle, and the Future
- How To Query And Change The Oracle Hidden Parameters In Oracle 10g and 11g (文档 ID 315631.1)
- You are managing an Oracle Database 11g instance and an Oracle Database 10g instance on the same mac
- OPD.NET Developer's Guide: Oracle Database 10g Developement with Visual Studio 2005 and the Oracle D
- 为 Linux 和 Windows 安装 PHP 和 Oracle 10g Instant Client
- Installing Oracle Software and Building the Database
- Installing Oracle Database 10g Release 2 on Linux-(RHEL 5)
- Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment vari
- 整合Oracle 10g、Apache 2.0、Php 5
- Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决!
- Oracle 10g AND Oracle 11g手工建库案例--Oracle 11g
- About the oracle database 10G (X64)installed FAQ
- Tuning and Optimizing Red Hat Enterprise Linux for Oracle 9i and 10g Databases
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]
- How to adjust the high watermark in ORACLE 10g -- ALTER TABLE SHRINK
- Finding and Installing a NuGet Package Using the Package Manager Console
- Compiling and Installing the Apache Web Server