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.
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.
I realize that there are many databases under linux, but maybe there
should be compiled in PHP3 at least support for PostgresQL which ships
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.
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.
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
Someone might want to update the errata page, since it indicates that
the stock RPM provides PostgreSQL support, which it clearly doesn't.