I’m having trouble connecting to a SybaseIQ with PHP
A bit of info about the environment :
- OS : Debian 8.10 Jessie
- Web hosting plateform : Plesk
- PHP : 7.1.8
- SQL Anywhere php extension : php-7.1.0_sqlanywhere.so
- SQL Anywhere client : version 17
The error i’m getting :
The SQLAnywhere client libraries could not be loaded. Please ensure
that libdbcapi.so can be found in your LD_LIBRARY_PATH environment
variable.
I’ve tried changing the LD_LIBRARY_PATH though apache2ctl, envvars, and the php command “putenv” but nothing is working.
Does anyone have a bit of experience with the same tools?
2
Answers
Do you have this module in /opt/plesk/php/7.1/lib/php/modules/ ?
“putenv” stores the variable only for a current request. Try using just “env” instead.
Verify where required modules are stored and then define it via corresponding “php.ini” or additional PHP directives in Plesk interface, for example: