Apache, PHP and IBM DB2...

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
tarballed
Forum Newbie
Posts: 1
Joined: Thu Feb 20, 2003 2:22 pm

Apache, PHP and IBM DB2...

Post by tarballed »

Hello everyone. I am new to these forums.

I have a question about PHP and IBM DB2. Basically, I am installing apache 1.3.27, PHP 4.3.1 and IBM DB2 v.8.1 on a Red Hat 8.0 server.

I did find a thread in these forums that talked about this. Here is the link:

viewtopic.php?t=5860&highlight=ibm+db2

I have been having problems compiling PHP for support for IBM DB2. I was receiving a error that I was unable to figure out. That is when I came across this forum.

In reading that particular thread, I thought of a couple questions.

Basically, there are references in the previous thread about making sure certain modules were compiled into apache. Granted, I am still new to PHP, Apache and IBM DB2, but I am learning.

What I want to do is compile apache/php so I can use them in conjunction with IBM DB2. However, I am not entirely sure on how to do this. Here is what I did when I compiled apache and PHP:

Apache:

--prefix=/usr/local/apache --enable-module=so

PHP:

--with-mysql --with-apxs=/usr/local/apache/bin/apxs

for IBm DB2, I had set the following option with PHP:

--with-ibm-db2=/home/db2insta1/sqllib

Now, I am not sure if I this is all correct and I was hoping that someone might be able to point out my error.

Does anyone have any suggestions on what I could be doing incorrectly? I could really use the help as I barely have any hair left after this episode. :)

Tarballed
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

It's allways hard to say on issues concerning php compilation. Check PHPBuilder. There is an install forum that is geared towards this kind of thing. There may also be some useful comments on the php online manual.

Good luck!

Cheers,
BDKR
fractalvibes
Forum Contributor
Posts: 335
Joined: Thu Sep 26, 2002 6:14 pm
Location: Waco, Texas

Post by fractalvibes »

I have never yet tried this, but try looking here:
http://www.idug.org/

And here - http://www7b.boulder.ibm.com/dmdd/

The first link - check out the discussion forums about DB2.

The second link - a number of recent articles about Db2 and Linux and PHP.

I use DB2 daily and PHP almost daily, but in totally different contexts and
not at the same time. With either, using the latest version will give you a World-Class solution.

Let us hear how it goes after checking out those resources.

Phil J.
Post Reply