Operating System - HP-UX
1830225 Members
1638 Online
109999 Solutions
New Discussion

Configure HPWS Apache/PHP/Oracle

 
Mark Coleman_1
Occasional Advisor

Configure HPWS Apache/PHP/Oracle

Hi,
I'm trying to set up HPWS Apache with PHP to access my Oracle database. I've followed the documentation to enable PHP and it is working fine. I have also followed the documentation to enable the oci8.sl PHP extension. I'm getting an error message in the apache log file when I start it that looks like this:
PHP Warning: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/oci8.sl' - Can't dlopen() a library containing Thread Local Storage: /oracle/product/8.1.7/JRE/lib/PA_RISC/native_threads/libjava.sl in Unknown on line 0

One thing I think may be the problem is the path in this error message is wrong. It should be /oracle/jre/lib/PA_RISC/native_threads/libjava.sl, but I can't find anywhere to change it in any of the configuration files. I've set the LD_PRELOAD variable in apachectl to be the correct path, but this still comes up in the error logs.

Thanks for any help you can supply!!
Mark
2 REPLIES 2
Bill Douglass
Esteemed Contributor

Re: Configure HPWS Apache/PHP/Oracle

This is discussed in the HP Web Servers for HP-UX FAQ:

http://www.hp.com/products1/unix/webservers/apache/faqs/index.html#trouble8

Mark Coleman_1
Occasional Advisor

Re: Configure HPWS Apache/PHP/Oracle

Thanks Bill. Turns out I needed the cumulative ld patch PHSS_26560 for HPUX 11.11 to make it work correctly. I installed that patch and have successfully accessed the database with PHP.
Thanks for the help.

Mark