Page 1 of 1
Oracle extension
Posted: Wed Mar 14, 2007 3:39 am
by mwagz
If I uncomment 'extension=oci8.sl' in /opt/hpws/apache/php/conf/php.ini and set the appropriate oracle variables in apachectl, do i need to recompile php to enable the oci8 module.
As of now the oci8 does not appear loaded when I do phpinfo() and i cant run ocilogon, i get call to undefined function when i try. I have already restarted apache a couple of times.
Any help?
OS :HP-UX
Posted: Wed Mar 14, 2007 3:40 am
by mwagz
I have followed the following steps to enable the
oracle extension for php on hp ux
1. Uncomment the following line in /opt/hpws/apache/conf/php.ini
extension=oci8.sl
2. Uncomment and set appropriate values for the following
variables in apachectl:
export ORACLE_HOME = /path/to/oracle-8.1.6/client/side/libraries
export SHLIB_PATH=$SHLIB_PATH:$ORACLE_HOME/lib
export LD_PRELOAD=$LD_PRELOAD:$ORACLE_HOME/JRE/lib/PA_RISC/native_thread
s/libjava.sl
export ORACLE_SID=ConnectionName
3. I have edited my httpd.conf and added
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
4. I have restarted apache and still I get the error
Call to undefined function ocilogon()
Any
help?
Posted: Wed Mar 14, 2007 4:28 am
by volka
mwagz wrote:1. Uncomment the following line in /opt/hpws/apache/conf/php.ini
is that the correct php? Please check
Code: Select all
echo 'ini: ', get_cfg_var('cfg_file_path');
Posted: Wed Mar 14, 2007 4:44 am
by dude81
paste your
information here. Generally on any linux , you need to compile PHP with the following options
Code: Select all
./configure
--with-oracle=/path/to/oracle/home/dir
--with-oci8=/path/to/oracle/home/dir