473,471 Members | 1,684 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP on RedHat 7.2 connecting to DB2 V6.1 database on Solaris

Greetings All,

I have situation as such that I need to access the DB2 database reside
on
a Solaris box. I have DB2 6.1 on my Solaris box. However, my webserver
is on Redhat 7.2. Now, I want to access the database residing on the
Solaris box via PHP page.

The IBM site has tips on how PHP pages accessing DB2 database. The
example given is good enough for me. I manage to get the ODBC Driver
Manager for
RedHat from www.unixODBC.org and successfully manage to install it.
The problem
here is that, I'm not sure which version of DB2 Connect to be
installed in
my webserver which is RedHat 7.2.

I think the DB2 Version 6.1 is not certified on RedHat 7.2. I'm
getting all
sort of dependencies errors during installation. I guess it could be
due to incompatibility. However, DB2 Version 7.2 seem to fit on RedHat
7.2. If i were to use DB2 7.2 to connect to DB2 6.1 Database residing
on Solaris box, will
this work?

If the above is not possible, that means i need to upgrade DB2 version
on
the Solaris box to 7.2 or later before could access the database. Am i
right?

Please help!

Thanks
Uthuras
Nov 12 '05 #1
4 2613
Ian
Uthuras wrote:
Greetings All,

I have situation as such that I need to access the DB2 database reside
on
a Solaris box. I have DB2 6.1 on my Solaris box. However, my webserver
is on Redhat 7.2. Now, I want to access the database residing on the
Solaris box via PHP page.

The IBM site has tips on how PHP pages accessing DB2 database. The
example given is good enough for me. I manage to get the ODBC Driver
Manager for
RedHat from www.unixODBC.org and successfully manage to install it.
The problem
here is that, I'm not sure which version of DB2 Connect to be
installed in
my webserver which is RedHat 7.2.


You can install the DB2 Runtime Client v7.2 and use this. (v7
will connect with a v6 instance).

You don't need DB2 Connect. You also don't need unixODBC. The IBM
DB2 support in PHP uses the php unified odbc driver, but it uses the
Runtime client code.
Also be aware that V6 is not supported on any platform anymore,
so you might want to consider moving your server up to V7 or V8
in the near future.
Good luck,


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #2
Ian <ia*****@mobileaudio.com> wrote in message news:<3f**********@corp.newsgroups.com>...
Uthuras wrote:
Greetings All,

I have situation as such that I need to access the DB2 database reside
on
a Solaris box. I have DB2 6.1 on my Solaris box. However, my webserver
is on Redhat 7.2. Now, I want to access the database residing on the
Solaris box via PHP page.

The IBM site has tips on how PHP pages accessing DB2 database. The
example given is good enough for me. I manage to get the ODBC Driver
Manager for
RedHat from www.unixODBC.org and successfully manage to install it.
The problem
here is that, I'm not sure which version of DB2 Connect to be
installed in
my webserver which is RedHat 7.2.
You can install the DB2 Runtime Client v7.2 and use this. (v7
will connect with a v6 instance).

You don't need DB2 Connect. You also don't need unixODBC. The IBM
DB2 support in PHP uses the php unified odbc driver, but it uses the
Runtime client code.
Also be aware that V6 is not supported on any platform anymore,
so you might want to consider moving your server up to V7 or V8
in the near future.
Good luck,

Thanks for the prompt feedback. I have another question related to PHP
connection to the remote database. As i mentioned, the DB2 database
reside
on the solaris box, so how shall i address the location of the remote
server
under PHP configure option.

e.g
$cd php-4.0.5
$ ./configure --with-ibm-db=/home/db2inst1/sqllib
{instance-path}

The above only works for local machine. How configure remote DB2
remote
instance reside in the solaris box ? Do i have to CATALOG the remote
NODE,
INSTANCE and DATABASE to the local machine first?

I'm a bit confused please help me out

Thanks
Uthuras


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----

Nov 12 '05 #3
Ian
Uthuras wrote:

Thanks for the prompt feedback. I have another question related to PHP
connection to the remote database. As i mentioned, the DB2 database
reside
on the solaris box, so how shall i address the location of the remote
server
under PHP configure option.

e.g
$cd php-4.0.5
$ ./configure --with-ibm-db=/home/db2inst1/sqllib
{instance-path}

The above only works for local machine. How configure remote DB2
remote instance reside in the solaris box ? Do i have to CATALOG the
remote NODE, INSTANCE and DATABASE to the local machine first?


On the web server you will have a runtime client installed, and it
will have a client instance, where you will catalog the remote
database.

You should specify the argument to the --with-ibm-db2 based on the
location of your client instance on the web server.
Good luck,


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #4
Ian <ia*****@mobileaudio.com> wrote in message news:<3f**********@corp.newsgroups.com>...
Uthuras wrote:

Thanks for the prompt feedback. I have another question related to PHP
connection to the remote database. As i mentioned, the DB2 database
reside
on the solaris box, so how shall i address the location of the remote
server
under PHP configure option.

e.g
$cd php-4.0.5
$ ./configure --with-ibm-db=/home/db2inst1/sqllib
{instance-path}

The above only works for local machine. How configure remote DB2
remote instance reside in the solaris box ? Do i have to CATALOG the
> remote NODE, INSTANCE and DATABASE to the local machine first?


On the web server you will have a runtime client installed, and it
will have a client instance, where you will catalog the remote
database.

You should specify the argument to the --with-ibm-db2 based on the
location of your client instance on the web server.
Good luck,


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----


Greetings,

I manage to get DB2 V7.2/Apache 1.3.14/PHP 4.0.3 to work together on
RedHat 8.0.
However, i could not get the latest version of Apache which is known
as HTTPD 2.0.48/PHP 4.3.4/DB2 V7.2 on RedHat 8.0 work together.

The httpd 2.0.x seem to give compilation error when do 'make install'
after
doing the following

# cd /usr/local/etc/httpd
# ./configure --prefix=/usr/local/etc/httpd --sysconfdir=/www/conf
--enable-
module=rewrite --enable-module=status
# make

it gives error as such that

..
...
Installing header files
cp `include/apr_allocator.h' and
`/usr/local/etc/httpd/apr_allocator.h'
are the same file
cp `include/apr_atomic.h' and `/usr/local/etc/httpd/apr_atomic.h'
are the same file
cp `include/apr_anylock.h' and
`/usr/local/etc/httpd/apr_anylock.h'
are the same file
cp `include/apr_base64.h' and `/usr/local/etc/httpd/apr_base64.h'
are the same file
....
....
....
make[1]: *** [install-include] Error 1
make[1]: *** [install-recursive] Error 1

and stop the installation. What seem to be the problem? Is there some
library
that are missing ? What is the compatible and certified HTTPD and PHP
version
to run on Redhat 8.0. I could not seem to find any information and
thus helpless.

Please help!

Thanks in advance
Uthuras
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tom Loredo | last post by:
Hi folks- I'm about to move from a Solaris 8/SPARC environment to a Dell running RedHat 9. Are there any issues I need to be aware of in bringing my Python code over (mostly scientific...
2
by: Russell E. Owen | last post by:
I'm trying to build Python 2.3.4 from source on a RedHat Enterprise machine for installation in a net-wide accessible directory /net/python. I tried all of the following variants of ./configure...
11
by: Daniel E. Fisher | last post by:
> I can't get a rest for a min guys. > > I go away for the weekend and my server is getting this error. > > Fatal error: Call to undefined function: pg_connect() in >...
0
by: Colin Robinson | last post by:
Hi, I was wondering if anyone could help, we have moved an asp application from IIS to apache on a Solaris box and need a guide on how to set-up the DSN to allow the ado command to connect to...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
1
by: mm | last post by:
I have several korn shell scripts I use with a MySQL database on the same server (Solaris). I am moving to a Linux environment where the MySQL database is on another server. I would like to...
1
by: danths | last post by:
Hello: We are trying to migrate DB2 Source: DB2 8.1 + Fixed Pack 5 on Sun Solaris -Target: DB2 9.X on Red Hat Linux . using db2move command we are trying out the migration. However one of the...
2
Chittaranjan
by: Chittaranjan | last post by:
Hi All, I have a big problem with my server and need some solutions to solve. I am working on PHP project and my code base had been set up on one of our RedHat server. I am not sure why in...
0
by: dot.yet | last post by:
Hi Everyone, environment: DB2 9.5 WSE with FP 2a Solaris 10 u5 - 64-bit SMP - 2 Quad CPUS - total 8 cores 16 GB RAM SAMPLE database Solaris Containers
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.