<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HPWS Apache with PHP and Oracle in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596768#M232256</link>
    <description>Hello, who can help?&lt;BR /&gt;&lt;BR /&gt;The designers of the hpws distribution can particularly help me.&lt;BR /&gt;&lt;BR /&gt;I have 2 problems with the HP Webserver distribution HPUXWSATW-A212 and&lt;BR /&gt;the modul php and the oracle library oci8.sl.&lt;BR /&gt;&lt;BR /&gt;#1&lt;BR /&gt;The webserver software hpws  was installed without bugs with swinstall.&lt;BR /&gt;A problem was start this from the comand linie version of php und pear.&lt;BR /&gt;&lt;BR /&gt;Error message : "/usr/lib/dld.sl: Can´t open shared library: /CLO/BUILD_ENV/lib/libdld.2"&lt;BR /&gt;       "/usr/lib/dld.sl: No such file or directory"&lt;BR /&gt;&lt;BR /&gt;I have made a directory /CLO/build and made a connection to /usr in this directory.&lt;BR /&gt;This is a bad away but php and pear works.&lt;BR /&gt;However, cause is the faulty distribution of the software of HP.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#2&lt;BR /&gt;The Error message ist "Unable to load dynamic library /opt/hpws/apache/php/lib/php/extensions/oci8.sl' -&lt;BR /&gt;Invalid flags for dlopen: /opt/hpws/apache/php/lib/php/extensions/oci8.sl in Unknown on linie 0&lt;BR /&gt;&lt;BR /&gt;The client is installed by Oracle 9.2 on the HPUX 11.11 server.&lt;BR /&gt;I have put all Enviroment variables ORACLE_HOME,SH_LIBPATH,SD_LIBRAY_PATH and LD_PRELOAD in apachectl for oracle.&lt;BR /&gt;The problem is probably hidden here, too. &lt;BR /&gt;The output by ld -t oci8.sl is : Can`t open /opt/oracle/lib/libclntsh.sl.8.0.&lt;BR /&gt;The same result at chatr oci8.sl. &lt;BR /&gt;When I make a soft link  from libclntsh.sl.9.0 on libclntsh.sl.8.0, the Error message is : "bad magic nummber e.g.".&lt;BR /&gt;&lt;BR /&gt;However, I don't have any client for Oracle 8 and he doesn't have to be got any more, too.&lt;BR /&gt;&lt;BR /&gt;Many thanks!&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Aug 2005 12:03:44 GMT</pubDate>
    <dc:creator>Griffel</dc:creator>
    <dc:date>2005-08-04T12:03:44Z</dc:date>
    <item>
      <title>HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596768#M232256</link>
      <description>Hello, who can help?&lt;BR /&gt;&lt;BR /&gt;The designers of the hpws distribution can particularly help me.&lt;BR /&gt;&lt;BR /&gt;I have 2 problems with the HP Webserver distribution HPUXWSATW-A212 and&lt;BR /&gt;the modul php and the oracle library oci8.sl.&lt;BR /&gt;&lt;BR /&gt;#1&lt;BR /&gt;The webserver software hpws  was installed without bugs with swinstall.&lt;BR /&gt;A problem was start this from the comand linie version of php und pear.&lt;BR /&gt;&lt;BR /&gt;Error message : "/usr/lib/dld.sl: Can´t open shared library: /CLO/BUILD_ENV/lib/libdld.2"&lt;BR /&gt;       "/usr/lib/dld.sl: No such file or directory"&lt;BR /&gt;&lt;BR /&gt;I have made a directory /CLO/build and made a connection to /usr in this directory.&lt;BR /&gt;This is a bad away but php and pear works.&lt;BR /&gt;However, cause is the faulty distribution of the software of HP.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#2&lt;BR /&gt;The Error message ist "Unable to load dynamic library /opt/hpws/apache/php/lib/php/extensions/oci8.sl' -&lt;BR /&gt;Invalid flags for dlopen: /opt/hpws/apache/php/lib/php/extensions/oci8.sl in Unknown on linie 0&lt;BR /&gt;&lt;BR /&gt;The client is installed by Oracle 9.2 on the HPUX 11.11 server.&lt;BR /&gt;I have put all Enviroment variables ORACLE_HOME,SH_LIBPATH,SD_LIBRAY_PATH and LD_PRELOAD in apachectl for oracle.&lt;BR /&gt;The problem is probably hidden here, too. &lt;BR /&gt;The output by ld -t oci8.sl is : Can`t open /opt/oracle/lib/libclntsh.sl.8.0.&lt;BR /&gt;The same result at chatr oci8.sl. &lt;BR /&gt;When I make a soft link  from libclntsh.sl.9.0 on libclntsh.sl.8.0, the Error message is : "bad magic nummber e.g.".&lt;BR /&gt;&lt;BR /&gt;However, I don't have any client for Oracle 8 and he doesn't have to be got any more, too.&lt;BR /&gt;&lt;BR /&gt;Many thanks!&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2005 12:03:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596768#M232256</guid>
      <dc:creator>Griffel</dc:creator>
      <dc:date>2005-08-04T12:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596769#M232257</link>
      <description>Couple of things.&lt;BR /&gt;&lt;BR /&gt;The error message in section 1 is usually caused by the wrong value or missing directory in the SHLIB_PATH variable.&lt;BR /&gt;&lt;BR /&gt;That being said, Oralcle ships with its own httpd server which is based on apache.&lt;BR /&gt;&lt;BR /&gt;There are pieces of Oracle that are built on Oracle 8 components. The error message is misleading to a great degree.&lt;BR /&gt;&lt;BR /&gt;This problem is also most likely to be an environment variable. Oracle's manual for the 9.2 database is very specfic and needs to be followed concerning patching and required environment varibables and patching and optional products.&lt;BR /&gt;&lt;BR /&gt;The soft link solution you tried is innnovative, but not the answer.&lt;BR /&gt;&lt;BR /&gt;If you are running a mixed Oracle 8/9 environment, I have a few tools developed that might help you handle envrionment switching issues.&lt;BR /&gt;&lt;BR /&gt;If you have some reason to use the HP version of apache and php et al, then make sure the SHLIB_PATH variable at install time includes those tools you have already installed, which are in the /opt/hpws directory.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 04 Aug 2005 12:12:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596769#M232257</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-08-04T12:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596770#M232258</link>
      <description>You may have better luck if you link /opt/oracle/lib/libclntsh.sl.8.0 to $ORACLE_HOME/lib32/libclntsh.sl.9.0. &lt;BR /&gt;&lt;BR /&gt;$ORACLE_HOME/lib/libclntsh.sl.9.0 is 64-bit library and it won't load in HP's apache, which is 32-bit.&lt;BR /&gt;&lt;BR /&gt;$ORACLE_HOME/lib32/libclntsh.sl.9.0 is 32-bit library, so linking to it may work.</description>
      <pubDate>Thu, 04 Aug 2005 21:03:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596770#M232258</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-08-04T21:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596771#M232259</link>
      <description>Many Thanks Steven and Ermin,&lt;BR /&gt;&lt;BR /&gt;but it don`t help me.&lt;BR /&gt;&lt;BR /&gt;#1 -I have reinstall hpws &lt;BR /&gt;export /ORACLE/HOME="/opt/oracle/products/9ir2&lt;BR /&gt;export SHLIB_PATH=/usr/lib:/usr/local/lib:/opt/hpws/apache/lib:/$ORACLE_HOME/lib:/$ORACLE/HOME/lib32:/opt/hpws/apache/php/lib/php/extensions&lt;BR /&gt;export  LD_PRELOAD=$ORACLE_HOME/JRE/lib/PA_RISC/native_threads/libjava.sl &lt;BR /&gt;&lt;BR /&gt;- swinstall -s /daten/HPUXWSATW-A212-1100.depot &lt;BR /&gt;&lt;BR /&gt;The same error as under exactly 1.&lt;BR /&gt;The  /CLO/BUILD_ENV  is in the file php-config written. &lt;BR /&gt;The variable extension_dir  is also put wrongly.Swinstall set the oci8.sl under&lt;BR /&gt;/opt/hpws/apache/php/lib/php/extensions.&lt;BR /&gt;&lt;BR /&gt;See appendix file php-config.&lt;BR /&gt;&lt;BR /&gt;#2 I have made a softlink of libclntsh.9.0 (lib32)to libclntsh.8.0 . Without success.&lt;BR /&gt;However, another path is registered in the library oci8.sl. With this command chatr to see.&lt;BR /&gt;The  location for the client oracle client library is /$ORACLE_HOME/lib/libclntsh.sl.9.0  or. .../lib32/lib... &lt;BR /&gt;The oci8 path for the client library is /opt/oracle/lib/libclntsh.sl.8.0&lt;BR /&gt;&lt;BR /&gt;I wish a beautiful weekend!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Aug 2005 09:12:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596771#M232259</guid>
      <dc:creator>Griffel</dc:creator>
      <dc:date>2005-08-05T09:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596772#M232260</link>
      <description>Please try the following&lt;BR /&gt;&lt;BR /&gt;$ cd $ORACLE_HOME/lib32&lt;BR /&gt;$ ln -s libclntsh.sl.9.0 libclnsth.sl.8.0&lt;BR /&gt;$ export SHLIB_PATH=$ORACLE_HOME/lib32&lt;BR /&gt;$ ldd /opt/hpws/apache/php/lib/php/extensions/oci8.sl&lt;BR /&gt;&lt;BR /&gt;ldd shouldn't return any errors and it should show you that oci8.sl picked up oracle library from $ORACLE_HOME/lib32.&lt;BR /&gt;&lt;BR /&gt;If all is ok, make sure you export SHLIB_PATH as described above before starting apache.</description>
      <pubDate>Sun, 07 Aug 2005 19:37:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596772#M232260</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-08-07T19:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596773#M232261</link>
      <description>Hello Ermin&lt;BR /&gt;&lt;BR /&gt;I have done everything as you it write that way. There is no more error message at the call ldd .../oci8.sl. The apache brings no more error either in the error_log file.&lt;BR /&gt;There is an error but if I invoke on the intenet explorer test webfile oracle.php : &lt;BR /&gt;&lt;BR /&gt;Fatal error: Call to undefined function OCILogon() in /opt/hpws/apache/htdocs/oracle.php on line 30&lt;BR /&gt;&lt;BR /&gt;I have put the line extension=oci8.sl  and the line  extension_dir = /opt/hpws/apache/php/lib/php/extensions in the file php.ini.&lt;BR /&gt;&lt;BR /&gt;Do you have an idea?</description>
      <pubDate>Mon, 08 Aug 2005 05:44:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596773#M232261</guid>
      <dc:creator>Griffel</dc:creator>
      <dc:date>2005-08-08T05:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596774#M232262</link>
      <description>Please make sure ORACLE_HOME is defined (and exported) in the apache startup script.</description>
      <pubDate>Mon, 08 Aug 2005 05:57:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596774#M232262</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-08-08T05:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596775#M232263</link>
      <description>Yes i have put it. Enclosed means file apachectl.</description>
      <pubDate>Mon, 08 Aug 2005 06:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596775#M232263</guid>
      <dc:creator>Griffel</dc:creator>
      <dc:date>2005-08-08T06:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596776#M232264</link>
      <description>It looks like apache didn't load oci8.sl.&lt;BR /&gt;&lt;BR /&gt;Can you create a simple php file that calls phpinfo() and see if oci comes up in the list?&lt;BR /&gt;&lt;BR /&gt;Are there any errors in apache logs?</description>
      <pubDate>Mon, 08 Aug 2005 06:31:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596776#M232264</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-08-08T06:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596777#M232265</link>
      <description>I have already made this. OCI doesn't occur.&lt;BR /&gt;No errors in the apache error_log.</description>
      <pubDate>Mon, 08 Aug 2005 07:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596777#M232265</guid>
      <dc:creator>Griffel</dc:creator>
      <dc:date>2005-08-08T07:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596778#M232266</link>
      <description>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?</description>
      <pubDate>Mon, 08 Aug 2005 18:38:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596778#M232266</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-08-08T18:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596779#M232267</link>
      <description>One more thought ... does file $ORACLE_HOME/JRE/lib/PA_RISC/native_threads/libja&lt;BR /&gt;va.sl exist?&lt;BR /&gt;&lt;BR /&gt;What happens when you try this?&lt;BR /&gt;&lt;BR /&gt;$ export SHLIB_PATH=$ORACLE_HOME/lib32&lt;BR /&gt;$ LD_PRELOAD=$ORACLE_HOME/JRE/lib/PA_RISC/native_threads/libja&lt;BR /&gt;va.sl /opt/hpws/apache/php/bin/php -c /opt/hpws/apache/conf/php.ini -f /opt/hpws&lt;BR /&gt;/apache/htdocs/oracle.php</description>
      <pubDate>Tue, 09 Aug 2005 00:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596779#M232267</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-08-09T00:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596780#M232268</link>
      <description>Hello Ermin&lt;BR /&gt;&lt;BR /&gt;I find it this well you have left at the thing.&lt;BR /&gt;You have taken me to the right track.&lt;BR /&gt;&lt;BR /&gt;Row extension=oci8.sl  isn't commented any more now in php.ini.&lt;BR /&gt;$ORACLE_HOME/JRE/lib/PA_RISC/native_threads/libja&lt;BR /&gt;va.sl exist.&lt;BR /&gt;When i make this LD_PRELOAD=$ORACLE... php -c ...php.ini ...htdocs/oracle.php&lt;BR /&gt;then i have new warning of php :" PHP Startup : Unable to load dynamic lbraray '/opt/hpws/apache/php/lib/php/extensions/php_oci8.sl &amp;lt;-- this is wrong, the file php_oci8.sl don`t exist ,&lt;BR /&gt;osi8.sl is exist.&lt;BR /&gt;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.&lt;BR /&gt;The error was still the missing library libclntsh.sl.8.0 here.&lt;BR /&gt;The script oracle.php works now.Many Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;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". &lt;BR /&gt;I only could solve this problem, if I have put a soft link on /usr/lib  /CLO/BUILD_ENV/usr/lib .</description>
      <pubDate>Tue, 09 Aug 2005 03:34:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596780#M232268</guid>
      <dc:creator>Griffel</dc:creator>
      <dc:date>2005-08-09T03:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596781#M232269</link>
      <description>To fix the php binary problem all you need to do is enable use of SHLIB_PATH.&lt;BR /&gt;&lt;BR /&gt;# chatr +s enable /opt/hpws/apache/php/bin/php&lt;BR /&gt;&lt;BR /&gt;chatr listing on php binary should now show that use of SHLIB_PATH is enabled (it was previously disabled).&lt;BR /&gt;&lt;BR /&gt;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 ...).&lt;BR /&gt;&lt;BR /&gt;Not sure why this problem exists, but hopefully that works for you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Aug 2005 04:08:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596781#M232269</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-08-09T04:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596782#M232270</link>
      <description>Has immediately worked. The good tips have helped me very much. Thanks.</description>
      <pubDate>Tue, 09 Aug 2005 04:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596782#M232270</guid>
      <dc:creator>Griffel</dc:creator>
      <dc:date>2005-08-09T04:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: HPWS Apache with PHP and Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596783#M232271</link>
      <description>Sorry, I have forgotten to assign the points.</description>
      <pubDate>Tue, 09 Aug 2005 04:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpws-apache-with-php-and-oracle/m-p/3596783#M232271</guid>
      <dc:creator>Griffel</dc:creator>
      <dc:date>2005-08-09T04:54:30Z</dc:date>
    </item>
  </channel>
</rss>

