Apache and PHP - Aster Client

Teradata Aster® Client Guide

Product
Aster Client
Release Number
7.00
Published
May 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
hki1475000360386.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
B700-2005
lifecycle
previous
Product Category
Software
Apart from the typical PHP-Apache setup, there are two things to keep in mind:
  1. Ensure that the Linux system is set up to find the libraries that the ODBC driver requires.
    1. Add the <INSTALL-DIR>/Libs and <INSTALL-DIR>/ODBCDriver paths to the /etc/ld.so.conf file, where <INSTALL-DIR> is the location for the ODBC installation.
    2. The following commands should be executed to refresh the ld cache and restart the Apache web server:
      $/sbin/ldconfig
      $/etc/init.d/apachectl restart
  2. To make sure that the ODBCSYSINI environment variable is available when PHP calls are made, use the following line in your PHP code:
    #given ODBCSYSINI is to be set to /etc then:
    putenv("ODBCSYSINI=/etc")
You should not set up your own PHP or use /etc/init.d/apachectl on the queen for your own web pages.