<?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: PHP request_startup() for sqlanywhere module failed in Unknown on line 0 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/php-request-startup-for-sqlanywhere-module-failed-in-unknown-on-line-0/qaa-p/13820902#M4851745</link>
    <description>&lt;P&gt;Are you running php7.2-fpm?  I had this problem and fixed it by adding the line&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;env[SQLANY17]=/opt/sqlanywhere17&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;to the file&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;/etc/php/7.2/fpm/pool.d/www.conf&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;(This was not required for sa 17.0.9.xxx)&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 08:58:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-05-18T08:58:30Z</dc:date>
    <item>
      <title>PHP request_startup() for sqlanywhere module failed in Unknown on line 0</title>
      <link>https://community.sap.com/t5/technology-q-a/php-request-startup-for-sqlanywhere-module-failed-in-unknown-on-line-0/qaq-p/13820899</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;I have done the following but get the PHP request_startup() for sqlanywhere module failed in Unknown on line 0 error:&lt;/P&gt;
&lt;P&gt;FROM &lt;A href="https://wiki.scn.sap.com/wiki/display/SQLANY/SAP+SQL+Anywhere+Database+Client+Download" target="_blank"&gt;https://wiki.scn.sap.com/wiki/display/SQLANY/SAP+SQL+Anywhere+Database+Client+Download&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;wget &lt;A href="http://d5d4ifzqzkhwt.cloudfront.net/sqla17client/sqla17_client_linux_x86x64.tar.gz" target="_blank"&gt;http://d5d4ifzqzkhwt.cloudfront.net/sqla17client/sqla17_client_linux_x86x64.tar.gz&lt;/A&gt;
tar -zxvf /opt/sqlanywhere17/installation/sqla17_client_linux_x86x64.tar.gz -C /opt/sqlanywhere17/installation
/opt/sqlanywhere17/installation/sqlany17/setup
rm -rf /opt/sqlanywhere17/installation
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Then get the client from &lt;A href="https://wiki.scn.sap.com/wiki/display/SQLANY/The+SAP+SQL+Anywhere+PHP+Module" target="_blank"&gt;https://wiki.scn.sap.com/wiki/display/SQLANY/The+SAP+SQL+Anywhere+PHP+Module&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;wget &lt;A href="http://d5d4ifzqzkhwt.cloudfront.net/drivers/php/SQLAnywhere-php-7.3_Linux.tar.gz" target="_blank"&gt;http://d5d4ifzqzkhwt.cloudfront.net/drivers/php/SQLAnywhere-php-7.3_Linux.tar.gz&lt;/A&gt; 
tar -xzf SQLAnywhere-php-7.3_Linux.tar.gz
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;I've then copied the lib64 folder to /etc/SQLAnywhere/php73/lib64&lt;/P&gt;
&lt;P&gt;I've added the extension to a file called sqlanywhere.ini in my conf.d folder:
    extension=/etc/SQLAnywhere/php73/lib64/php-7.3.0_sqlanywhere.so&lt;/P&gt;
&lt;P&gt;I created a file called sqlanywhere.conf in /etc/ld.so.conf.d containing:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;/opt/sqlanywhere17/lib64
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;And ran ldconfig&lt;/P&gt;
&lt;P&gt;If I run "ldconfig -v" it shows all the various lib64 files for sqlanywhere&lt;/P&gt;
&lt;P&gt;And then I restart the server and I get the "PHP request_startup() for sqlanywhere module failed in Unknown on line 0" error in my error logs &lt;/P&gt;
&lt;P&gt;I've go this far but am absolutely stumped!  Permissions? Apache not seeing the LDCONFIG?  I'm really stuck and need to get a new server up asap!  Any help appreciated!!&lt;/P&gt;
&lt;P&gt;BTW I found this elsewhere on the forum but have no idea what file I would put this directive into&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Adding&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;Environment&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;LD_LIBRARY_PATH&lt;/SPAN&gt;&lt;SPAN&gt;=/&lt;/SPAN&gt;&lt;SPAN&gt;opt&lt;/SPAN&gt;&lt;SPAN&gt;/sqlanywhere17/&lt;/SPAN&gt;&lt;SPAN&gt;lib64&lt;/SPAN&gt; &lt;SPAN&gt;at&lt;/SPAN&gt; &lt;SPAN&gt;the&lt;/SPAN&gt; &lt;SPAN&gt;beginning&lt;/SPAN&gt; &lt;SPAN&gt;of&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;Service&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt; &lt;SPAN&gt;section&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;the&lt;/SPAN&gt; &lt;SPAN&gt;httpd&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;service&lt;/SPAN&gt; &lt;SPAN&gt;file&lt;/SPAN&gt; &lt;SPAN&gt;solved&lt;/SPAN&gt; &lt;SPAN&gt;the&lt;/SPAN&gt; &lt;SPAN&gt;problem&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;my&lt;/SPAN&gt; &lt;SPAN&gt;case&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 May 2020 18:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/php-request-startup-for-sqlanywhere-module-failed-in-unknown-on-line-0/qaq-p/13820899</guid>
      <dc:creator>alunrowe</dc:creator>
      <dc:date>2020-05-17T18:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: PHP request_startup() for sqlanywhere module failed in Unknown on line 0</title>
      <link>https://community.sap.com/t5/technology-q-a/php-request-startup-for-sqlanywhere-module-failed-in-unknown-on-line-0/qaa-p/13820900#M4851743</link>
      <description>&lt;P&gt;BTW I am using Serverpilot for managing my server.  These docs show how config needs to be done.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://serverpilot.io/docs/customize-php-settings/"&gt;https://serverpilot.io/docs/customize-php-settings/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 18:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/php-request-startup-for-sqlanywhere-module-failed-in-unknown-on-line-0/qaa-p/13820900#M4851743</guid>
      <dc:creator>alunrowe</dc:creator>
      <dc:date>2020-05-17T18:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: PHP request_startup() for sqlanywhere module failed in Unknown on line 0</title>
      <link>https://community.sap.com/t5/technology-q-a/php-request-startup-for-sqlanywhere-module-failed-in-unknown-on-line-0/qaa-p/13820901#M4851744</link>
      <description>&lt;P&gt;Also my database is on a remote machine so no need for running databases on this Linux install just the client.&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 18:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/php-request-startup-for-sqlanywhere-module-failed-in-unknown-on-line-0/qaa-p/13820901#M4851744</guid>
      <dc:creator>alunrowe</dc:creator>
      <dc:date>2020-05-17T18:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: PHP request_startup() for sqlanywhere module failed in Unknown on line 0</title>
      <link>https://community.sap.com/t5/technology-q-a/php-request-startup-for-sqlanywhere-module-failed-in-unknown-on-line-0/qaa-p/13820902#M4851745</link>
      <description>&lt;P&gt;Are you running php7.2-fpm?  I had this problem and fixed it by adding the line&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;env[SQLANY17]=/opt/sqlanywhere17&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;to the file&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;/etc/php/7.2/fpm/pool.d/www.conf&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;(This was not required for sa 17.0.9.xxx)&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 08:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/php-request-startup-for-sqlanywhere-module-failed-in-unknown-on-line-0/qaa-p/13820902#M4851745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-05-18T08:58:30Z</dc:date>
    </item>
  </channel>
</rss>

