Quantcast
Channel: SCN: Message List - Software Support and Maintenance
Viewing all articles
Browse latest Browse all 2823

ODBC directories and environment variables

$
0
0

We have a situation where a Linux computer on a different subnet has to retrieve info from a Windows server database via ODBC.

 

Our ODBC files are in:


/opt/sqlanywhere12 # ls

bin32   bin64s                     installed.ini  lib64          readme_en.txt  readme_zh.txt  selinux          tix

bin32s  deployment                 java           readme         readme_fr.txt  res            support          uninstall.sh

bin64   install_20160115-1158.log  lib32          readme_de.txt  readme_ja.txt  sdk            thirdpartylegal

 

/etc/unixODBC # ls

ODBCDataSources  odbc.ini  odbcinst.ini

 

/opt/sqlanywhere12/lib64 # ls

libdbcapi.so      libdbicu12_r.so.1  libdblib12.so      libdbodbc12_n.so.1      libdbodm12.so        libdbtool12_r.so.1

libdbcapi.so.1    libdbicudt12.so    libdblib12.so.1    libdbodbc12_r.so        libdbodm12.so.1      libmljodbc12.so

libdbcapi_r.so    libdbicudt12.so.1  libdblib12_r.so    libdbodbc12_r.so.1      libdbtasks12.so      libmljodbc12.so.1

libdbcapi_r.so.1  libdbjdbc12.so     libdblib12_r.so.1  libdbodbcansi12_r.so    libdbtasks12.so.1    libodbcinst.so

libdbicu12.so     libdbjdbc12.so.1   libdbodbc12.so     libdbodbcansi12_r.so.1  libdbtasks12_r.so    libodbcinst.so.1

libdbicu12.so.1   libdbjodbc12.so    libdbodbc12.so.1   libdbodbcinst12_r.so    libdbtasks12_r.so.1

libdbicu12_r.so   libdbjodbc12.so.1  libdbodbc12_n.so   libdbodbcinst12_r.so.1  libdbtool12_r.so

 

Using PHP under Apache2 webserver, I need to query the database, but the server can't find the necessary files UNLESS I am running PHP from the command line FROM /opt/sqlanywhere12.

 

So, either (1) SQLAnywhere was installed in the wrong directories (it was an automatic install), or (2) I do not have a list of the appropriate environment variables, or (3) some config change to Apache2 is necessary.

 

Any input would be appreciated!

 

-Norm Strassner,

Aljex Software

Boulder, CO


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>