LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2003, 04:20 PM   #1
jkpalmer52
Member
 
Registered: Oct 2003
Location: Chicago
Distribution: RH 7.2, RH 8.0 and RH 9.0
Posts: 32

Rep: Reputation: 15
Question RH 7.2 - PHP 4.3.4 and IBM DB2 V8.1


I'm struggling.

I've managed to install IBM DB2 V8.1 on RH7.2. Been searching for procedure to install a PHP version which works with DB2.

I found this site - www7b . boulder . ibm . com / dmdd / library / techarticle / scott/0614_scott.html - which I have followed almost to the letter.

I did NOT install or configure Apache, since the version installed with RH 7.2 is suppoed to work with DB2.

I downloaded PHP-4.3.4 and ran configure on this version (with out any --with or --without parameters since all the defaults are pointing to the right directories)

Followed the document - etc, etc. etc. up to the point where it talks about writing scripts that connect to DB2 UDB. At this point I've created a phpinfo.php file which ust runs the function phpinfo() placed it in the var/www/html directory and ran it from my browser as - http: // localhost / phpinfo.php - and this is where it starts to get a little odd. The page served up displays the version of PHP is 4.0.6 (which is the version that installs with RH 7.2). I did a make and a make install again and and still get the same result.

I'm in very deep and am running out of energy.

Any guidance would be appreciated.

TIA

-jP
 
Old 11-07-2003, 06:05 AM   #2
xanga
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
hi jk,

it could be because of the different locations in which the php libraries are installed when you choose a bog standard rpm packet or try to compile from source.

compiling from source normally puts libphp4.so into usr/local/apache/libexec/ folder (this is the location which is added to your httpd.conf), whilst on my machine, the rpms (from redhat.com) install into /usr/lib/apache/

try 'locate libphp4.so' from command line, to see if there are two of them?

and check the httpd.conf for the php module location, it could be that your machine is still using the old php version, cos it doesn't know where the new one is?

good luck
 
Old 11-07-2003, 12:13 PM   #3
jkpalmer52
Member
 
Registered: Oct 2003
Location: Chicago
Distribution: RH 7.2, RH 8.0 and RH 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
Only found one libphp4.lo file

I've tried so many ways to get this to work, I don't remember what I've tried.

Many re-installs of RH 7.2, and re-installs of DB2

Trying different versions of PHP from 4.3.4 backwards to 4.0.6 (which is the version from RH 7.2 install)

It really appears that any install of PHP does not "overlay" the previous version and when installing PHP fresh without RH 7.2 installing it, I can get it to work.

Tried skipping install of Apache and PHP when installing Linux and then installing both Apache and PHP from source. Still same result.

As a newbie and one that has a fair amount of problem solving skills but lacking in the "Linux tech skills" I am baffled at the incomplete instruction set that IBM has supplied with their product and overwhelmed by the inexhaustable number of options available for many of the tools availabel for Linux. Worlds apart and I stand firmly ENTRENCHED in the middle.

-jP
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE 9.2 and IBM DB2 V.8.1 rkarl SUSE / openSUSE 4 01-05-2005 03:18 AM
DB2 8.1 on Redhat 7.2 - PHP Configure issue jkpalmer52 Linux - Newbie 0 11-04-2003 11:07 AM
IBM DB2 Problen Bogdan Linux - General 1 10-16-2003 03:30 AM
Bad disk perfomance with IBM DB2 DMA present. Bogdan Linux - Hardware 0 10-02-2003 07:48 AM
IBM DB2 with Kerberos fenriswolf Linux - Security 0 10-11-2001 12:50 PM


All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration