Hi
I have a problem with the odbc_connect function when i try to connect with a IBM db2 database.
I'm using Red Hat Linux 7.1 with php and apache.
When odbc_connect executes, apache web server doesn't show the page and the /usr/local/apache/log/error_log shows:
/usr/local/apache/bin/httpd: error while loading shared libraries: /usr/local/apache/bin/httpd: undefined symbol: SQLAllocEnv
Any idea??
Thanks
Pablo_k
Php and db2
Moderator: General Moderators
Hi:
I have installed the next modules:
DB2 Administration Client
DB2 UDB enterprise edition
DB2 connect enterprise edition
DB2 Application Development client
and i have recompiled php with apache:
php:
./configure --with-ibm-db2=/usr/IBMdb2/V7.1 --with-mysql --with-apache=/usr/src/apache_1.3.27
apache:
./configure --activate-module=src/modules/php4/libphp4.a
...and don't work.
I have installed the next modules:
DB2 Administration Client
DB2 UDB enterprise edition
DB2 connect enterprise edition
DB2 Application Development client
and i have recompiled php with apache:
php:
./configure --with-ibm-db2=/usr/IBMdb2/V7.1 --with-mysql --with-apache=/usr/src/apache_1.3.27
apache:
./configure --activate-module=src/modules/php4/libphp4.a
...and don't work.
-
fractalvibes
- Forum Contributor
- Posts: 335
- Joined: Thu Sep 26, 2002 6:14 pm
- Location: Waco, Texas
I'd suggest asking at comp.databases.ibm-db2 also.
A number of IBMer's give advice, etc. and may know the solution right off the bat. Be sure and tell them the version of DB2 and any other pertinant
info.
I use Db2, but with ASP, so don't know what issues you may have with Linux.
Anyway, good luck! Let us know how/if you resolve the issue.
Phil J.
A number of IBMer's give advice, etc. and may know the solution right off the bat. Be sure and tell them the version of DB2 and any other pertinant
info.
I use Db2, but with ASP, so don't know what issues you may have with Linux.
Anyway, good luck! Let us know how/if you resolve the issue.
Phil J.
- d-m
- Forum Commoner
- Posts: 31
- Joined: Fri Aug 29, 2003 4:24 pm
- Location: Rio de Janeiro - RJ - Brasil
I remember that I have already explain at http://www.php.net years ago how to compile php with db2... please check at these link :
http://www.php.net/manual/en/function.odbc-connect.php
At the comments of the funcion... It has the solution!
I hope it could help U
http://www.php.net/manual/en/function.odbc-connect.php
At the comments of the funcion... It has the solution!
I hope it could help U