cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Installing php extension for SQL Anywhere on server with CentOS, Plesk, php-fpm

0 Likes
1,886

Hello,

we got a new WebServer with CentOS, Plesk and php-fpm.
Now we don't get the php extension running.

What we did:
- installed SQL Anywhere 17 (ebf29577)
- copied php-7.3.0_sqlanywhere_r.so to /opt/plesk/php/7.3/lib64/php/modules/
- loading php-7.3.0_sqlanywhere_r.so via /opt/plesk/php/7.3/etc/php.d/sqlanywhere.ini
- this leads to an error:
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"
(This leads to, that php 7.3 fpm is not loading at all)
- next try was to switch from FPM to CGI: same error
- module is loadable itself by shell if LD_LIBRARY_PATH was enhanced with path /opt/sqlanywhere17/lib64/
- some tries getting the cause by strace did not help

Are there some more installing instructions for php-fpm (maybe even for CentOS)?
Informations from https://archive.sap.com/kmuuid2/90c5c96c-2442-3010-5393-de2af3857c52/Getting%20Started%20with%20SQL%... didn't help.

Thanks for your help
Florian

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

after a lot of tests we found a solution:
in Plesk Domain php settings we had to add:

[php-fpm-pool-settings]
env[LD_LIBRARY_PATH]="/opt/sqlanywhere_v2/lib64:$LD_LIBRARY_PATH"

Now all libs are found and it works