on ‎2020 Nov 19 10:36 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.