Click to See Complete Forum and Search --> : Upgraded to PHP5, with-oci8-instant-client ... no oci8 section


8cc
08-24-2006, 06:46 PM
Running RHEL4. I had php4 installed as an rpm, but I needed the Oracle instant client support. I erased the php4 rpm and compiled php 5.1.5 with the "--with-oci8-instant-client" option. When I pull up a phpinfo(), there is no oci8 section.

I have the oracle instant client rpms installed:
oracle-instantclient-basic-10.2.0.1-1
oracle-instantclient-sqlplus-10.2.0.1-1
oracle-instantclient-devel-10.2.0.1-1

I've set LD_LIBRARY_PATH and ORACLE_HOME with:
export ORACLE_HOME=/usr/lib/oracle/10.2.0.1/client
export LD_LIBRARY_PATH=${ORACLE_HOME}/lib:${LD_LIBRARY_PATH}

I added the following to httpd.conf:
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

I did not touch the Apache httpd rpm (httpd-2.0.52-28.ent), I'm not sure if this is the problem.

Thanks in advance.

mjsheldon
08-24-2006, 07:39 PM
PHP/Zend changed the compile argument

It is now: --with-oci8=instantclient,<path-to-instant-client>

8cc
08-25-2006, 11:55 AM
That did it, thanks!