1752618 Members
4382 Online
108788 Solutions
New Discussion юеВ

Oracle extension

 
mwagiru2
Advisor

Oracle extension

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?
5 REPLIES 5
Peter Godron
Honored Contributor

Re: Oracle extension

mwagiru2
Advisor

Re: Oracle extension

I have tried all the suggestions on the links you gave and I still have the same problem. I saw this one -

check the config for apache (typically on hp in /opt/apache/conf/httpd.conf) and see if the PHP add-ins have been uncommented.

but I don't know how to check for the PHP add-ins.

Any more help?
Peter Godron
Honored Contributor

Re: Oracle extension

Hi,
have you tried:
grep -i php httpd.conf
mwagiru2
Advisor

Re: Oracle extension

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_threads/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?
Yogeeraj_1
Honored Contributor

Re: Oracle extension

hi,

one trivial thing.

can you confirm that you connecting to the right port? If you have several instances of apache running, there may be the possibility that you are connecting to the wrong listener port.

revert
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)