note 43475 deleted from function.odbc-connect by cmb
| From: | cmb@php.net | Date: | Sun, 25 Aug 2019 07:51:28 +0000 |
| Subject: | note 43475 deleted from function.odbc-connect by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211967@lists.php.net to get a copy of this message | ||
Note Submitter: d-m at eudoramail dot com
----
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Compiling Apache + PHP + DB2 8.1 without the DATABASE instaled at the WebServer Machine!
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Go to the machine that you have DB2 DATABASE instaled and COPY the include files from the DB2 8.1
DataBase to the PHP source directory:
Sample:
[root@DB2_SERVER/usr/opt/db2_08_01/include]# scp * user@webserver:/usr/src/php-4.3.7/ext/odbc/.
INSTALLING THE WEBSERVER!
Enter in the WebServer as root and ...
-- DB2 --
Install Administration Client
Catalog the DataBases
-- END DB2 --
-- LIB --
vi /etc/ld.so.conf
add line: /opt/IBM/db2/V8.1/lib
execute: ldconfig
-- END LIB --
Download PHP + MODSSL + OPENSSL + APACHE!
--- APACHE ---
cd ../mod_ssl-2.8.18-1.3.31
./configure --enable-module=so --with-apache=../apache_1.3.31 --with-ssl=../openssl-0.9.7d
cd ../apache_1.3.31/
make
make certificate TYPE=custom
make install
--- END APACHE ---
OBS: CRIPT the CA.key
DO NOT CRYPT server.key
-- PHP --
cd ../php-4.3.7
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-pgsql
--with-zip=/usr/local/lib --with-ibm-db2=/opt/IBM/db2/V8.1
make
make install
-- END PHP ---
-- APACHE EDIT TO RUN DB2 --
vim /usr/local/apache/bin/apachectl
add line: . /home/db2inst1/sqllib/db2profile
-- END APACHE EDIT TO RUN DB2 --
NOW run /usr/local/apache/bin/apachectl startssl
DONE !!!!!
You have a WebServer with PHP with DB2,MYSQL,POSTGRES and SSL Support.
Enjoy IT!
[]´s
Helio Ferenhof