<?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 php with mysql extension not working via CLI (unsatisfied code symbol) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/php-with-mysql-extension-not-working-via-cli-unsatisfied-code/m-p/5179032#M682547</link>
    <description>Hi,&lt;BR /&gt;  I have recently installed Apache v2.23 (with Tomcat/webmin), and also the MySQL server and libraries from the Internet Express Web2 (A.12.00-004) package.  All running on 11iv3.&lt;BR /&gt;&lt;BR /&gt;I have enabled the mysql extension, and it works fine via apache (ie, can connect to mysql and perform queuries), but it fails via the command line.  I am guessing it is related to some shared libraries but not sure where to start resolving it.&lt;BR /&gt;&lt;BR /&gt;root@prdign01 [/opt/hpws/apache/php/bin]&lt;BR /&gt;# egrep "extension_dir|mysql.sl" /opt/hpws/apache/conf/php.ini&lt;BR /&gt;extension_dir = "/opt/hpws/apache/php/lib/php/extensions"&lt;BR /&gt;; extension_dir directive above.&lt;BR /&gt;extension=mysql.sl&lt;BR /&gt;&lt;BR /&gt;root@prdign01 [/opt/hpws/apache/php/bin]&lt;BR /&gt;# ll /opt/hpws/apache/php/lib/php/extensions/mysql.sl &lt;BR /&gt;-r-xr-xr-x   1 bin        bin        2433648 Oct 24  2008 /opt/hpws/apache/php/lib/php/extensions/mysql.sl&lt;BR /&gt;&lt;BR /&gt;root@prdign01 [/opt/hpws/apache/php/bin]&lt;BR /&gt;# ./php -c /opt/hpws/apache/conf/php.ini -i | grep -i mysql   &lt;BR /&gt;PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/mysql.sl' - Unsatisfied code symbol 'SSL_connect' in load module '/opt/hpws/apache/php/lib/php/extensions/mysql.sl'. in Unknown on line 0&lt;BR /&gt;&lt;BR /&gt;This works perfectly through a script served via apache, but not from the CLI.&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;&lt;BR /&gt;Richard</description>
    <pubDate>Wed, 03 Jun 2009 06:45:32 GMT</pubDate>
    <dc:creator>Richard I Curtis</dc:creator>
    <dc:date>2009-06-03T06:45:32Z</dc:date>
    <item>
      <title>php with mysql extension not working via CLI (unsatisfied code symbol)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/php-with-mysql-extension-not-working-via-cli-unsatisfied-code/m-p/5179032#M682547</link>
      <description>Hi,&lt;BR /&gt;  I have recently installed Apache v2.23 (with Tomcat/webmin), and also the MySQL server and libraries from the Internet Express Web2 (A.12.00-004) package.  All running on 11iv3.&lt;BR /&gt;&lt;BR /&gt;I have enabled the mysql extension, and it works fine via apache (ie, can connect to mysql and perform queuries), but it fails via the command line.  I am guessing it is related to some shared libraries but not sure where to start resolving it.&lt;BR /&gt;&lt;BR /&gt;root@prdign01 [/opt/hpws/apache/php/bin]&lt;BR /&gt;# egrep "extension_dir|mysql.sl" /opt/hpws/apache/conf/php.ini&lt;BR /&gt;extension_dir = "/opt/hpws/apache/php/lib/php/extensions"&lt;BR /&gt;; extension_dir directive above.&lt;BR /&gt;extension=mysql.sl&lt;BR /&gt;&lt;BR /&gt;root@prdign01 [/opt/hpws/apache/php/bin]&lt;BR /&gt;# ll /opt/hpws/apache/php/lib/php/extensions/mysql.sl &lt;BR /&gt;-r-xr-xr-x   1 bin        bin        2433648 Oct 24  2008 /opt/hpws/apache/php/lib/php/extensions/mysql.sl&lt;BR /&gt;&lt;BR /&gt;root@prdign01 [/opt/hpws/apache/php/bin]&lt;BR /&gt;# ./php -c /opt/hpws/apache/conf/php.ini -i | grep -i mysql   &lt;BR /&gt;PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/mysql.sl' - Unsatisfied code symbol 'SSL_connect' in load module '/opt/hpws/apache/php/lib/php/extensions/mysql.sl'. in Unknown on line 0&lt;BR /&gt;&lt;BR /&gt;This works perfectly through a script served via apache, but not from the CLI.&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 03 Jun 2009 06:45:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/php-with-mysql-extension-not-working-via-cli-unsatisfied-code/m-p/5179032#M682547</guid>
      <dc:creator>Richard I Curtis</dc:creator>
      <dc:date>2009-06-03T06:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: php with mysql extension not working via CLI (unsatisfied code symbol)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/php-with-mysql-extension-not-working-via-cli-unsatisfied-code/m-p/5179033#M682548</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I can see just a little bit confusion here.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have recently installed Apache v2.23&lt;BR /&gt;&lt;BR /&gt;So you should use /opt/hpws22/apache/php/bin/php, not&lt;BR /&gt;/opt/hpws/apache/php/bin/php. The latter is php 5.2.6 included in&lt;BR /&gt;HP-UX Apache-based Web Server v.2.0.5?.&lt;BR /&gt;&lt;BR /&gt;Can you show the output from swlist ?&lt;BR /&gt;&lt;BR /&gt;# swlist | grep Apache&lt;BR /&gt;&lt;BR /&gt;One more request. Is the SSL_connect problem reproduciable for&lt;BR /&gt;/opt/hpws22/apache/php/bin/php using the same php code ?</description>
      <pubDate>Wed, 03 Jun 2009 22:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/php-with-mysql-extension-not-working-via-cli-unsatisfied-code/m-p/5179033#M682548</guid>
      <dc:creator>Shinji Teragaito_1</dc:creator>
      <dc:date>2009-06-03T22:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: php with mysql extension not working via CLI (unsatisfied code symbol)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/php-with-mysql-extension-not-working-via-cli-unsatisfied-code/m-p/5179034#M682549</link>
      <description>Hello again,&lt;BR /&gt;&lt;BR /&gt;Sorry for giving you some confusions. I should carefully look at&lt;BR /&gt;your message. Please forget about the WSS v.3.0.?.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; This works perfectly through a script served via apache&lt;BR /&gt;&lt;BR /&gt;I guess you enable mod_ssl.so in your httpd.conf.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; but not from the CLI.&lt;BR /&gt;&lt;BR /&gt;I can not find OpenSSL linkage in /opt/hpws/apache/php/bin/php-config.&lt;BR /&gt;So I guess PHP must be rebuild with --with-openssl=/opt/openssl.</description>
      <pubDate>Thu, 04 Jun 2009 00:00:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/php-with-mysql-extension-not-working-via-cli-unsatisfied-code/m-p/5179034#M682549</guid>
      <dc:creator>Shinji Teragaito_1</dc:creator>
      <dc:date>2009-06-04T00:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: php with mysql extension not working via CLI (unsatisfied code symbol)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/php-with-mysql-extension-not-working-via-cli-unsatisfied-code/m-p/5179035#M682550</link>
      <description>Shinji:  I only have an hpws directory - there is no other /opt/hpws* directory structure.&lt;BR /&gt;&lt;BR /&gt;I have managed to resolve this issue by copying a copy of mysql.sl from another similar server.  It looks like I had an incompatible version of the mysql.sl binary.&lt;BR /&gt;A "what /opt/hpws/apache/php/lib/php/extensions/mysql.sl" on the broken one gives:&lt;BR /&gt;$MySQL A.11.00-5.0.67.001$&lt;BR /&gt;$MySQL A.11.00-5.0.67.001$&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:21:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/php-with-mysql-extension-not-working-via-cli-unsatisfied-code/m-p/5179035#M682550</guid>
      <dc:creator>Richard I Curtis</dc:creator>
      <dc:date>2009-06-04T06:21:43Z</dc:date>
    </item>
  </channel>
</rss>

