Hi all
I want to enable support for Oracle in my PHP 5.2.6 I use this command to configure PHP:
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-mysql --with-mysqli=/usr/bin/mysql_config --with-openssl --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-gettext --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --enable-mcrypt --enable-magic-quotes --enable-discard-path --enable-sockets --enable-track-vars --enable-gd-native-ttf --with-ttf --with-xmlrpc --with-zlib --enable-soap --with-oci8-instant-client=/usr/lib/oracle/10.2.0.4/client/lib --enable-sigchild
And PHP says:
Notice: Following unknown configure options were used:
--enable-mbstr-enc-trans
--enable-mcrypt
--enable-track-vars
--with-oci8-instant-client=/usr/lib/oracle/10.2.0.4/client/lib
I tryed this one, too (which is recommended by README file, located in /php-5.2.6/ext/oci8):
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-mysql --with-mysqli=/usr/bin/mysql_config --with-openssl --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-gettext --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --enable-mcrypt --enable-magic-quotes --enable-discard-path --enable-sockets --enable-track-vars --enable-gd-native-ttf --with-ttf --with-xmlrpc --with-zlib --enable-soap --with-oci8=shared,instantclient,/usr/lib/oracle/10.2.0.4/client/lib
This time with no error. But after compiling and make, in phpinfo() I just can see the above command, and there is not any section indicates OCI has been enabled.
OS: SuSE Linux Enterprise Server 10
Apache: 1.3 family
PHP: 5.2.6
Oracle details: Basic Instant Clint, version 10.2. I've set oracle variables in environmnet, too:
ORA_CRS_HOME=/opt/oracle/product/10gR2/crs
ORA_ASM_HOME=/opt/oracle/product/10gR2/asm
ORACLE_SID=orcl
ORACLE_BASE=/opt/oracle
ORACLE_HOME=/usr/lib/oracle/10.2.0.4/client/bin
LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib
NLS_LANG=AMERICAN_AMERICA.AROMSWIN1256
How can I make it work?