Bug 2051 - PHP3 is not compiled with support for databases
Summary: PHP3 is not compiled with support for databases
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mod_php3
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-04-08 07:59 UTC by ipaul
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-05-26 15:43:47 UTC

Attachments (Terms of Use)

Description ipaul 1999-04-08 07:59:14 UTC
I have installed mod_php3 and configured apache for it and
it works fine.
But when I try to conect to some databases it report some
errors (I have tried postgresql, sybase, mysql, oracle and
none of them have worked.).
It seems that mod_php3 is not compiled with support for
Please correct this.

Comment 1 Preston Brown 1999-04-08 14:35:59 UTC
Which database people have is highly subjective.  For this reason, if
someone is using a database backend with php3, they should rebuild the
RPM with support for that particular database enabled.

Comment 2 ipaul 1999-04-13 07:08:59 UTC
I realize that there are many databases under linux, but maybe there
should be compiled in PHP3 at least support for PostgresQL which ships
with RedHat.

Comment 3 Preston Brown 1999-04-13 18:26:59 UTC
If we did link against postgresql or something like that, people who
wanted to use the mod_php3 module would be *forced* to install
postgresql on their system, even if they didn't want to use it, to
satisfy the dependencies.

There are two solutions, neither of which is going to make it for 6.0:

1. have a number of subpackages to mod_php3 with different databases
supported in each subpackage.  Messy, large, but effective
2. get the mod_php3 people to dlopen database libraries, so new ones
can be added at runtime instead of compile time.  This is the real
solution.  Complain to the php3 people.

For now, people wanting database support more extensive than gdbm will
have to recompile.  Not the best solution, I know.

Comment 4 Preston Brown 1999-05-26 15:43:59 UTC
We will be making available php-3.0.8 as an update for Red Hat Linux,
which will include PostgreSQL support out of the box.

Comment 5 mcornick 1999-05-27 18:00:59 UTC
PostgreSQL didn't make it into mod_php3-3.0.8-1 due to a typo in the
spec file. The correct option to configure is --with-pgsql, not

Comment 6 emarshal 1999-06-08 23:40:59 UTC
Someone might want to update the errata page, since it indicates that
the stock RPM provides PostgreSQL support, which it clearly doesn't.

Note You need to log in before you can comment on or make changes to this bug.