Jerry, I believe it's the sqllib dir, but you can try the other or experiment with just /home/db2inst1/sqllib If created by the DB2 client installer, try applying the environment variables script: . /home/db2inst1/sqllib/db2profile
Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -----Original Message----- > From: Jerry [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 05, 2002 11:36 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Database Connection > > > Thanks Andrew for your answer. > > In the environment variables I have already: > > DB2INSTANCE=db2inst1 > LD_LIBRARY_PATH=:/home/db2inst1/sqllib/lib > > Is it correct ? Or does it need to point to the DB2 Client directory > /usr/IBMdb2/V7.1/lib > > > Thanks. > > Jerry > > > "Andrew Hill" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Jerry, > > > Installing DB2 Client will allow you to use the ODBC functions > in PHP, but > > be aware that you are not actually using any ODBC Drivers in this > instance. > > PHP allows hiding of certain database specific functions under > a "Unified > > ODBC" that uses the ODBC functions without using true ODBC database > communication. > > > That being said, you don't need to link --with-iODBC unless you > are using > > ODBC Drivers, so it's not an issue here. > > > If Apache doesn't start, I'd check it's logs, but you might be > encountering > > a situation where the DB2 libraries were in the path at compile time and > are > > not at Apache start time. Try setting LD_LIBRARY_PATH environment > variable > > to include the location of your DB2 Client. > > > Andrew Hill > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > . > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php