<?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>Question Re: Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264398#M4593843</link>
    <description>&lt;P&gt;I got a step forward:&lt;/P&gt;&lt;P&gt;using this command within shell as root&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/opt/plesk/php/7.3/bin/php -c /opt/plesk/php/7.3/etc/php.ini -i&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;returns a complete phpinfo with sqlanywhere block and a lot of Enviroment variables. So this shows me that all is in it's place.&lt;/P&gt;&lt;P&gt;But using same command as user returns error 'request_startup() for sqlanywhere module failed'!&lt;/P&gt;&lt;P&gt;So I think it's quite clear that Apache runs without the needed permissions or an incomplete configuration. I forwarded this infornation to my hoster - I hope he's able to do what's needed now.&lt;/P&gt;&lt;P&gt;Thanks for your input&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2020 08:24:30 GMT</pubDate>
    <dc:creator>floriankornhoffer</dc:creator>
    <dc:date>2020-11-20T08:24:30Z</dc:date>
    <item>
      <title>Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm</title>
      <link>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaq-p/12264394</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;we got a new WebServer with CentOS, Plesk and php-fpm.&lt;BR /&gt;Now we don't get the php extension running.&lt;/P&gt;
  &lt;P&gt;What we did:&lt;BR /&gt;- installed SQL Anywhere 17 (ebf29577)&lt;BR /&gt;- copied php-7.3.0_sqlanywhere_r.so to /opt/plesk/php/7.3/lib64/php/modules/&lt;BR /&gt;- loading php-7.3.0_sqlanywhere_r.so via /opt/plesk/php/7.3/etc/php.d/sqlanywhere.ini&lt;BR /&gt;- this leads to an error:&lt;BR /&gt;WARNING: [pool plesk-php73-fpm.plesk-service.localdomain] child 11616 said into stderr: "NOTICE: PHP message: PHP Warning: request_startup() for sqlanywhere module failed in Unknown on line 0"&lt;BR /&gt; (This leads to, that php 7.3 fpm is not loading at all)&lt;BR /&gt;- next try was to switch from FPM to CGI: same error&lt;BR /&gt;- module is loadable itself by shell if LD_LIBRARY_PATH was enhanced with path /opt/sqlanywhere17/lib64/&lt;BR /&gt;- some tries getting the cause by strace did not help&lt;/P&gt;
  &lt;P&gt;Are there some more installing instructions for php-fpm (maybe even for CentOS)? &lt;BR /&gt;Informations from &lt;A href="https://archive.sap.com/kmuuid2/90c5c96c-2442-3010-5393-de2af3857c52/Getting%20Started%20with%20SQL%20Anywhere%20and%20PHP.pdf"&gt;https://archive.sap.com/kmuuid2/90c5c96c-2442-3010-5393-de2af3857c52/Getting%20Started%20with%20SQL%20Anywhere%20and%20PHP.pdf&lt;/A&gt; didn't help.&lt;/P&gt;
  &lt;P&gt;Thanks for your help&lt;BR /&gt;Florian&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 10:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaq-p/12264394</guid>
      <dc:creator>floriankornhoffer</dc:creator>
      <dc:date>2020-11-19T10:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm</title>
      <link>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264395#M4593840</link>
      <description>&lt;P&gt;To confirm:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The php.ini that is being used in the web server environment is being modified i.e., the one that is reported in the phpinfo() output.&lt;/LI&gt;&lt;LI&gt;The php.ini &lt;STRONG&gt;extension_dir&lt;/STRONG&gt; references /opt/plesk/php/7.3/lib64/php/modules/.&lt;/LI&gt;&lt;LI&gt;The extension been corrected added to the &lt;B&gt;Dynamic Extensions&lt;/B&gt; section&lt;/LI&gt;&lt;LI&gt;The SQLA environment has been correctly sourced and visible to the web browser i.e., %sqlany17%\bin64\sa_config.sh. Primarily, you will want to ensure the libxx where xx is the bitness of the webserver is in the LD_LIBRARY_PATH as well as SQLANY17 environment variable pointing to the root of the SQLA install. The shared object for dbcapi which is required by the PHP driver needs to be located by the web server PHP environment.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The phpinfo() is a very useful diagnostic to identify what is not correctly configured.  &lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 21:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264395#M4593840</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2020-11-19T21:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm</title>
      <link>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264396#M4593841</link>
      <description>&lt;P&gt;First: I'm not to familiar with linux - I gave the work to my hoster who should know what he is doing, but he was not successfull.&lt;/P&gt;&lt;P&gt;Now to your questions as far I can answer them:&lt;/P&gt;&lt;P&gt;- php.ini is not modified itself but in subdir php.d there was placed a file sqlanywhere.ini with line&lt;BR /&gt;extension=php-7.3.0_sqlanywhere_r.so&lt;/P&gt;&lt;P&gt;- there was a try to load extension directly in php.ini (once without and once with complte path), but with same negative result&lt;/P&gt;&lt;P&gt;- extension_dir is not set in php.ini as it has ; at the beginning, but all other extensions are loaded fine (none of them, is set in php.ini but with an ini file i php.d&lt;/P&gt;&lt;P&gt;- sa_config.sh was executed without errors&lt;/P&gt;&lt;P&gt;- env variables: how can I check these? &lt;BR /&gt;In phpinfo none of both is shown in Box Environment. There are 'USER' and 'HOME' only&lt;/P&gt;&lt;P&gt;- libdbcapi.so exists in lib64&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 23:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264396#M4593841</guid>
      <dc:creator>floriankornhoffer</dc:creator>
      <dc:date>2020-11-19T23:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm</title>
      <link>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264397#M4593842</link>
      <description>&lt;P&gt;I still suspect that configuration is incorrect.  I have no knowledge of the webservers that you are citing and only enough knowledge of linux to be dangerous (in fact, I am winging the following but basing it on what I expect is needed to configure the SQLA PHP extension). &lt;/P&gt;&lt;P&gt;I would like you to get the phpinfo() so that we can confirm the php.ini file being loaded and then check its contents and settings.   Please look for &lt;STRONG&gt;Loaded Configuration File&lt;/STRONG&gt;. It is that file that we are concerned. You should also look for the block of output that lists the &lt;STRONG&gt;Apache Environment&lt;/STRONG&gt;  (** this may be named for the host webserver ** ) and &lt;STRONG&gt;Environment&lt;/STRONG&gt; and confirm that the SQL Anywhere configuration in particular lib64 (and perhaps SQLANY17) are in those blocks.  I will assume that there is not a block for &lt;STRONG&gt;sqlanywhere &lt;/STRONG&gt;as it is not being loaded correctly.  If there is, please share its content. If the environment settings are not found, they will need to be sourced so that they are visible to the webserver.  Please go to the PHP root directory (where the PHP binaries that are being used by the webserver) and execute php -m.  This will list the modules that are loaded and generally an error (with context) for modules that cannot be loaded. I am expecting to see sqlanywhere to appear here either as loaded or with an error outlining more info as to why it failed to load. &lt;/P&gt;&lt;P&gt;If it is never referenced in the output for php -m then the environment is not configured to attempt loading sqlanywhere. In testing; the sqlanywhere extension would only be loaded if the extension_dir was defined *or* the sqlanywhere PHP shared object was in the default location for extensions *and* the entry &lt;STRONG&gt;extension=&amp;lt;sqlanywhere php shared object&amp;gt;&lt;/STRONG&gt; existed in the php.ini file that is loaded (as per phpinfo() ).&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 04:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264397#M4593842</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2020-11-20T04:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm</title>
      <link>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264398#M4593843</link>
      <description>&lt;P&gt;I got a step forward:&lt;/P&gt;&lt;P&gt;using this command within shell as root&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/opt/plesk/php/7.3/bin/php -c /opt/plesk/php/7.3/etc/php.ini -i&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;returns a complete phpinfo with sqlanywhere block and a lot of Enviroment variables. So this shows me that all is in it's place.&lt;/P&gt;&lt;P&gt;But using same command as user returns error 'request_startup() for sqlanywhere module failed'!&lt;/P&gt;&lt;P&gt;So I think it's quite clear that Apache runs without the needed permissions or an incomplete configuration. I forwarded this infornation to my hoster - I hope he's able to do what's needed now.&lt;/P&gt;&lt;P&gt;Thanks for your input&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 08:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264398#M4593843</guid>
      <dc:creator>floriankornhoffer</dc:creator>
      <dc:date>2020-11-20T08:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm</title>
      <link>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264399#M4593844</link>
      <description>&lt;P&gt;It took us a step forward, but the hoster is not able to configure the system that the result is same as on commandline. They say: they know how to do it on commandline but are not able to find the correct way oto get it running under the webserver. They need a step to step instruction how to activate the module in a php-ftpm context when using plesk.&lt;/P&gt;&lt;P&gt;php -m shows the module when (as with -i above) you are root and you have run sa_config.sh before.&lt;/P&gt;&lt;P&gt;Any idea how to do it?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 15:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264399#M4593844</guid>
      <dc:creator>floriankornhoffer</dc:creator>
      <dc:date>2020-11-20T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm</title>
      <link>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264400#M4593845</link>
      <description>&lt;P&gt;I have no knowledge of that tool. If they are having problems setting up an PHP extension using that tool, they should be working with plesk to understand how to achieve it. I have exhausted my knowledge of this topic.  If they ensure that the php.ini that is the Loaded Configuration File is modified to set the extension_dir and add extension=&amp;lt;sqla_driver&amp;gt;, this should work.  &lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2020 03:48:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264400#M4593845</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2020-11-22T03:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm</title>
      <link>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264401#M4593846</link>
      <description>&lt;P&gt;All of these documented things are done, but we and they were not able to find a solution with this server configuration.&lt;/P&gt;&lt;P&gt;Thanks you anyway for your input.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2020 16:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264401#M4593846</guid>
      <dc:creator>floriankornhoffer</dc:creator>
      <dc:date>2020-11-22T16:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm</title>
      <link>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264402#M4593847</link>
      <description>&lt;P&gt;after a lot of tests we found a solution:&lt;BR /&gt;in Plesk Domain php settings we had to add:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[php-fpm-pool-settings]&lt;BR /&gt;env[LD_LIBRARY_PATH]="/opt/sqlanywhere_v2/lib64:$LD_LIBRARY_PATH"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now all libs are found and it works&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 09:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/installing-php-extension-for-sql-anywhere-on-server-with-centos-plesk-php/qaa-p/12264402#M4593847</guid>
      <dc:creator>floriankornhoffer</dc:creator>
      <dc:date>2020-11-24T09:51:23Z</dc:date>
    </item>
  </channel>
</rss>

