Operating System - HP-UX
1752770 Members
4906 Online
108789 Solutions
New Discussion юеВ

Re: HPWS Apache with PHP and Oracle

 
Ermin Borovac
Honored Contributor

Re: HPWS Apache with PHP and Oracle

Sorry, no more suggestions except to double check your php.ini again and make sure oci.sl is uncommented. You have modified the one in /opt/hpws/apache/conf/php.ini, haven't you?
Ermin Borovac
Honored Contributor

Re: HPWS Apache with PHP and Oracle

One more thought ... does file $ORACLE_HOME/JRE/lib/PA_RISC/native_threads/libja
va.sl exist?

What happens when you try this?

$ export SHLIB_PATH=$ORACLE_HOME/lib32
$ LD_PRELOAD=$ORACLE_HOME/JRE/lib/PA_RISC/native_threads/libja
va.sl /opt/hpws/apache/php/bin/php -c /opt/hpws/apache/conf/php.ini -f /opt/hpws
/apache/htdocs/oracle.php
Griffel
Advisor

Re: HPWS Apache with PHP and Oracle

Hello Ermin

I find it this well you have left at the thing.
You have taken me to the right track.

Row extension=oci8.sl isn't commented any more now in php.ini.
$ORACLE_HOME/JRE/lib/PA_RISC/native_threads/libja
va.sl exist.
When i make this LD_PRELOAD=$ORACLE... php -c ...php.ini ...htdocs/oracle.php
then i have new warning of php :" PHP Startup : Unable to load dynamic lbraray '/opt/hpws/apache/php/lib/php/extensions/php_oci8.sl <-- this is wrong, the file php_oci8.sl don`t exist ,
osi8.sl is exist.
File php.ini contains entries ;extension=php_oci8.dll. I have copy the row, unkomment and only change dll in sl. At the first enquiry on ITC, however, I had written the line newly extension=oci8.sl.
The error was still the missing library libclntsh.sl.8.0 here.
The script oracle.php works now.Many Thanks for your help.

A problem still is, if I start php on the commandline. The error message "Can`t open shared library : /CLO/BUILD_ENV/usr/lib/libdld.2".
I only could solve this problem, if I have put a soft link on /usr/lib /CLO/BUILD_ENV/usr/lib .
Ermin Borovac
Honored Contributor

Re: HPWS Apache with PHP and Oracle

To fix the php binary problem all you need to do is enable use of SHLIB_PATH.

# chatr +s enable /opt/hpws/apache/php/bin/php

chatr listing on php binary should now show that use of SHLIB_PATH is enabled (it was previously disabled).

Now make sure you have /usr/lib in your SHLIB_PATH and php should work from the command line as well (and you can also remove link to /CLO/BUILD_ENV ...).

Not sure why this problem exists, but hopefully that works for you.

Griffel
Advisor

Re: HPWS Apache with PHP and Oracle

Has immediately worked. The good tips have helped me very much. Thanks.
Griffel
Advisor

Re: HPWS Apache with PHP and Oracle

Sorry, I have forgotten to assign the points.