skip to Main Content

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


  1. Do you have this module in /opt/plesk/php/7.1/lib/php/modules/ ?

    Login or Signup to reply.
  2. “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:

    env[LD_LIBRARY_PATH] = /opt/sqlanywhere12/lib64
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search