note 18777 deleted from function.odbc-connect by cmb
| From: | cmb@php.net | Date: | Sun, 25 Aug 2019 07:52:42 +0000 |
| Subject: | note 18777 deleted from function.odbc-connect by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211972@lists.php.net to get a copy of this message | ||
Note Submitter: d-m at eudoramail dot com
----
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
odbc_connect ERRO at DB2
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
To Solve the problem with DB2 + PHP folow this steps!
INSTALL THE PROGRAM LIKE THIS!
-- DB2 --
Install the DataBank
Install Application Tools
-- END DB2 --
--- APACHE ---
cd ../mod_ssl-2.8.5-1.3.22/
./configure --enable-module=so --with-apache=../apache_1.3.22/ --with-ssl=../openssl-0.9.6c/
cd ../apache_1.3.22/
make
make certificate TYPE=custom
make install
--- END APACHE ---
-- PHP --
cd ../php-4.1.1/
./configure --with-apxs=/usr/local/apache/bin/apxs --with-pgsql --with-mysql
--with-ibm-db2=/usr/IBMdb2/V7.1
make
make install
-- END PHP ---
-- LIB --
vim /etc/ld.so.conf
add line: /usr/IBMdb2/V7.1/lib
execute: ldconfig
-- END LIB --
To Solve the error ODBC_CONNECT exec the db2profile at the apachectl!!! Like this!
-- APACHE EDIT TO RUN DB2 --
vim /usr/local/apache/bin/apachectl
add line: . /usr/home/db2inst1/sqllib/db2profile
-- END APACHE EDIT TO RUN DB2 --
NOW run /usr/local/apache/bin/apachectl startssl
DONE !!!!!
You have a DB2 + APACHE + SSL + PHP + MYSQL + POSTGRES .
Enjoy
[]´s
Helio Ferenhof