libapache2-mod-php4: Support for Postgresql seems to be missing

Bug #11617 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
php4 (Debian)
Fix Released
Unknown
php4 (Ubuntu)
Invalid
High
Unassigned

Bug Description

Automatically imported from Debian bug report #288410 http://bugs.debian.org/288410

Revision history for this message
In , Andres Salomon (dilinger-deactivatedaccount) wrote : Re: Bug#288410: libapache2-mod-php4: Support for Postgresql seems to be missing

On Mon, 2005-01-03 at 17:30 +0100, Hans Spaans wrote:
> Package: libapache2-mod-php4
> Version: 4:4.3.10-2
> Severity: grave
> Justification: renders package unusable
>
> I upgrade to the latest php4/apache2 packages in Sarge but this causes
> to php4-scripts to complain about support for postgresql that is
> missing. The exact message is:
>
> "Your PHP installation does not support PostgreSQL. You need to
> recompile PHP using the --with-pgsql configure option."
>
> With kind regards,

Do you have php4-pgsql installed? If so, is the line
"extension=pgsql.so" in your /etc/php4/apache2/php.ini?

--
Andres Salomon <email address hidden>

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #288410 http://bugs.debian.org/288410

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Mon, 03 Jan 2005 17:30:29 +0100
From: Hans Spaans <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: libapache2-mod-php4: Support for Postgresql seems to be missing

Package: libapache2-mod-php4
Version: 4:4.3.10-2
Severity: grave
Justification: renders package unusable

I upgrade to the latest php4/apache2 packages in Sarge but this causes
to php4-scripts to complain about support for postgresql that is
missing. The exact message is:

  "Your PHP installation does not support PostgreSQL. You need to
   recompile PHP using the --with-pgsql configure option."

With kind regards,
Hans

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (800, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libapache2-mod-php4 depends on:
ii apache2-mpm-prefork 2.0.52-3 Traditional model for Apache2
ii libbz2-1.0 1.0.2-1 A high-quality block-sorting file
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an
ii libdb4.2 4.2.52-17 Berkeley v4.2 Database Libraries [
ii libexpat1 1.95.8-1 XML parsing C library - runtime li
ii libmagic1 4.12-1 File type determination library us
ii libpcre3 4.5-1.1 Perl 5 Compatible Regular Expressi
ii libssl0.9.7 0.9.7e-2 SSL shared libraries
ii mime-support 3.28-1 MIME files 'mime.types' & 'mailcap
ii php4-common 4:4.3.10-2 Common files for packages built fr
ii zlib1g 1:1.2.2-3 compression library - runtime

-- no debconf information

Revision history for this message
In , Roxik (roxik-poczta) wrote : Re: Bug#288410: libapache2-mod-php4: Support for Postgresql seems to be missing

Hi Hans

Did you try install: php4-pgsql ??

--
I greet
Wieslaw

----- Original Message -----
From: "Hans Spaans" <email address hidden>
To: "Debian Bug Tracking System" <email address hidden>
Sent: Monday, January 03, 2005 5:30 PM
Subject: Bug#288410: libapache2-mod-php4: Support for Postgresql seems to be
missing

> Package: libapache2-mod-php4
> Version: 4:4.3.10-2
> Severity: grave
> Justification: renders package unusable
>
> I upgrade to the latest php4/apache2 packages in Sarge but this causes
> to php4-scripts to complain about support for postgresql that is
> missing. The exact message is:
>
> "Your PHP installation does not support PostgreSQL. You need to
> recompile PHP using the --with-pgsql configure option."
>
> With kind regards,
> Hans
>
> -- System Information:
> Debian Release: 3.1
> APT prefers testing
> APT policy: (800, 'testing')
> Architecture: i386 (i686)
> Kernel: Linux 2.4.27-1-686
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
>
> Versions of packages libapache2-mod-php4 depends on:
> ii apache2-mpm-prefork 2.0.52-3 Traditional model for Apache2
> ii libbz2-1.0 1.0.2-1 A high-quality block-sorting
> file
> ii libc6 2.3.2.ds1-18 GNU C Library: Shared
> libraries an
> ii libdb4.2 4.2.52-17 Berkeley v4.2 Database
> Libraries [
> ii libexpat1 1.95.8-1 XML parsing C library -
> runtime li
> ii libmagic1 4.12-1 File type determination
> library us
> ii libpcre3 4.5-1.1 Perl 5 Compatible Regular
> Expressi
> ii libssl0.9.7 0.9.7e-2 SSL shared libraries
> ii mime-support 3.28-1 MIME files 'mime.types' &
> 'mailcap
> ii php4-common 4:4.3.10-2 Common files for packages
> built fr
> ii zlib1g 1:1.2.2-3 compression library - runtime
>
> -- no debconf information
>
>
> --
> To UNSUBSCRIBE, email to <email address hidden>
> with a subject of "unsubscribe". Trouble? Contact
> <email address hidden>
>
>

----------------------------------------------------------------------
Najlepsze auto, najlepsze moto... >>> http://link.interia.pl/f1841

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <1104771484.6250.3.camel@localhost>
Date: Mon, 03 Jan 2005 11:58:04 -0500
From: Andres Salomon <email address hidden>
To: <email address hidden>
Subject: Re: Bug#288410: libapache2-mod-php4: Support for Postgresql seems
 to be missing

--=-iDHD/5rs6JEDeLHBumS0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2005-01-03 at 17:30 +0100, Hans Spaans wrote:
> Package: libapache2-mod-php4
> Version: 4:4.3.10-2
> Severity: grave
> Justification: renders package unusable
>=20
> I upgrade to the latest php4/apache2 packages in Sarge but this causes
> to php4-scripts to complain about support for postgresql that is
> missing. The exact message is:
>=20
> "Your PHP installation does not support PostgreSQL. You need to
> recompile PHP using the --with-pgsql configure option."
>=20
> With kind regards,

Do you have php4-pgsql installed? If so, is the line
"extension=3Dpgsql.so" in your /etc/php4/apache2/php.ini?

--=20
Andres Salomon <email address hidden>

--=-iDHD/5rs6JEDeLHBumS0
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBB2Xmb78o9R9NraMQRAtu4AJ0QR92AhnS6l7/y9Eq8Ztk3IFlrEQCgryS1
/e1uZABLPY7szvgTPnmiEF0=
=dnPl
-----END PGP SIGNATURE-----

--=-iDHD/5rs6JEDeLHBumS0--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <00f301c4f1b8$96882dc0$01001eac@wizzard>
Date: Mon, 3 Jan 2005 18:20:42 +0100
From: "Wiesiek" <email address hidden>
To: "Hans Spaans" <email address hidden>, <email address hidden>
Subject: Re: Bug#288410: libapache2-mod-php4: Support for Postgresql seems to be missing

Hi Hans

Did you try install: php4-pgsql ??

--
I greet
Wieslaw

----- Original Message -----
From: "Hans Spaans" <email address hidden>
To: "Debian Bug Tracking System" <email address hidden>
Sent: Monday, January 03, 2005 5:30 PM
Subject: Bug#288410: libapache2-mod-php4: Support for Postgresql seems to be
missing

> Package: libapache2-mod-php4
> Version: 4:4.3.10-2
> Severity: grave
> Justification: renders package unusable
>
> I upgrade to the latest php4/apache2 packages in Sarge but this causes
> to php4-scripts to complain about support for postgresql that is
> missing. The exact message is:
>
> "Your PHP installation does not support PostgreSQL. You need to
> recompile PHP using the --with-pgsql configure option."
>
> With kind regards,
> Hans
>
> -- System Information:
> Debian Release: 3.1
> APT prefers testing
> APT policy: (800, 'testing')
> Architecture: i386 (i686)
> Kernel: Linux 2.4.27-1-686
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
>
> Versions of packages libapache2-mod-php4 depends on:
> ii apache2-mpm-prefork 2.0.52-3 Traditional model for Apache2
> ii libbz2-1.0 1.0.2-1 A high-quality block-sorting
> file
> ii libc6 2.3.2.ds1-18 GNU C Library: Shared
> libraries an
> ii libdb4.2 4.2.52-17 Berkeley v4.2 Database
> Libraries [
> ii libexpat1 1.95.8-1 XML parsing C library -
> runtime li
> ii libmagic1 4.12-1 File type determination
> library us
> ii libpcre3 4.5-1.1 Perl 5 Compatible Regular
> Expressi
> ii libssl0.9.7 0.9.7e-2 SSL shared libraries
> ii mime-support 3.28-1 MIME files 'mime.types' &
> 'mailcap
> ii php4-common 4:4.3.10-2 Common files for packages
> built fr
> ii zlib1g 1:1.2.2-3 compression library - runtime
>
> -- no debconf information
>
>
> --
> To UNSUBSCRIBE, email to <email address hidden>
> with a subject of "unsubscribe". Trouble? Contact
> <email address hidden>
>
>

----------------------------------------------------------------------
Najlepsze auto, najlepsze moto... >>> http://link.interia.pl/f1841

Revision history for this message
In , Hans Spaans (cj-spaans) wrote :

Wiesiek wrote:
> Hi Hans
>
> Did you try install: php4-pgsql ??
>

Yes I did, but the result was negative. I just removed and installed the
package again, and it works again. Does the php4-pgsql package do some
linking or so?

With kind regards,
Hans

Revision history for this message
In , Roxik (roxik-poczta) wrote :

Hi

Yes. It is.

So try as Andreas say:
If so, is the line
"extension=pgsql.so" in your /etc/php4/apache2/php.ini?

try restart apache too. It woks for me.

--
I greet
Wieslaw

----- Original Message -----
From: "Hans Spaans" <email address hidden>
To: "Wiesiek" <email address hidden>
Cc: <email address hidden>
Sent: Monday, January 03, 2005 8:12 PM
Subject: Bug#288410: libapache2-mod-php4: Support for Postgresql seems to be
missing

> Wiesiek wrote:
>> Hi Hans
>>
>> Did you try install: php4-pgsql ??
>>
>
> Yes I did, but the result was negative. I just removed and installed the
> package again, and it works again. Does the php4-pgsql package do some
> linking or so?
>
> With kind regards,
> Hans
>
>
> --
> To UNSUBSCRIBE, email to <email address hidden>
> with a subject of "unsubscribe". Trouble? Contact
> <email address hidden>
>
>

----------------------------------------------------------------------
Najlepsze auto, najlepsze moto... >>> http://link.interia.pl/f1841

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 03 Jan 2005 20:12:04 +0100
From: Hans Spaans <email address hidden>
To: Wiesiek <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#288410: libapache2-mod-php4: Support for Postgresql seems
 to be missing

Wiesiek wrote:
> Hi Hans
>
> Did you try install: php4-pgsql ??
>

Yes I did, but the result was negative. I just removed and installed the
package again, and it works again. Does the php4-pgsql package do some
linking or so?

With kind regards,
Hans

Revision history for this message
In , Hans Spaans (cj-spaans) wrote :

Wiesiek wrote:
> Hi
>
> Yes. It is.
>
> So try as Andreas say:
> If so, is the line
> "extension=pgsql.so" in your /etc/php4/apache2/php.ini?
>
> try restart apache too. It woks for me.

Hi,

Yes its now in the file, it wasn't before and I was surprised. Pgsql
worked before and with this config, and other modules like imap and
mysql aren't also in the php.ini but do work. That was the point where I
was misled.

And yes I had restarted apache2, I even rebooted the machine as I
normally do with the weekly upgrade of Sarge on that machine.

With kind regards,
Hans

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <013e01c4f1ca$c6723dc0$01001eac@wizzard>
Date: Mon, 3 Jan 2005 20:30:48 +0100
From: "Wiesiek" <email address hidden>
To: "Hans Spaans" <email address hidden>, <email address hidden>
Subject: Re: Bug#288410: libapache2-mod-php4: Support for Postgresql seems to be missing

Hi

Yes. It is.

So try as Andreas say:
If so, is the line
"extension=pgsql.so" in your /etc/php4/apache2/php.ini?

try restart apache too. It woks for me.

--
I greet
Wieslaw

----- Original Message -----
From: "Hans Spaans" <email address hidden>
To: "Wiesiek" <email address hidden>
Cc: <email address hidden>
Sent: Monday, January 03, 2005 8:12 PM
Subject: Bug#288410: libapache2-mod-php4: Support for Postgresql seems to be
missing

> Wiesiek wrote:
>> Hi Hans
>>
>> Did you try install: php4-pgsql ??
>>
>
> Yes I did, but the result was negative. I just removed and installed the
> package again, and it works again. Does the php4-pgsql package do some
> linking or so?
>
> With kind regards,
> Hans
>
>
> --
> To UNSUBSCRIBE, email to <email address hidden>
> with a subject of "unsubscribe". Trouble? Contact
> <email address hidden>
>
>

----------------------------------------------------------------------
Najlepsze auto, najlepsze moto... >>> http://link.interia.pl/f1841

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 03 Jan 2005 20:51:53 +0100
From: Hans Spaans <email address hidden>
To: Wiesiek <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#288410: libapache2-mod-php4: Support for Postgresql seems
 to be missing

Wiesiek wrote:
> Hi
>
> Yes. It is.
>
> So try as Andreas say:
> If so, is the line
> "extension=pgsql.so" in your /etc/php4/apache2/php.ini?
>
> try restart apache too. It woks for me.

Hi,

Yes its now in the file, it wasn't before and I was surprised. Pgsql
worked before and with this config, and other modules like imap and
mysql aren't also in the php.ini but do work. That was the point where I
was misled.

And yes I had restarted apache2, I even rebooted the machine as I
normally do with the weekly upgrade of Sarge on that machine.

With kind regards,
Hans

Revision history for this message
In , Steve Langasek (vorlon) wrote :

On Mon, Jan 03, 2005 at 08:51:53PM +0100, Hans Spaans wrote:
> >So try as Andreas say:
> >If so, is the line
> >"extension=pgsql.so" in your /etc/php4/apache2/php.ini?

> >try restart apache too. It woks for me.

> Yes its now in the file, it wasn't before and I was surprised. Pgsql
> worked before and with this config, and other modules like imap and
> mysql aren't also in the php.ini but do work. That was the point where I
> was misled.

> And yes I had restarted apache2, I even rebooted the machine as I
> normally do with the weekly upgrade of Sarge on that machine.

If the extensions are not listed in php.ini but you're able to use them,
this is only because your application uses the dl() function to load them
opportunistically. This is good practice.

If pgsql was not usable because it was not listed in php.ini, it is because
the application did not make opportunistic use of the extension but expected
it to be preloaded in the PHP config. This is standard practice.

Since reinstalling the package gave you the correct results, I think the
only possible bug here is #264064 (php4-pgsql installed before
libapache2-mod-php4 does not configure), which is not grave.

--
Steve Langasek
postmodern programmer

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 3 Jan 2005 16:42:37 -0800
From: Steve Langasek <email address hidden>
To: Hans Spaans <email address hidden>, <email address hidden>
Cc: Wiesiek <email address hidden>
Subject: Re: Bug#288410: libapache2-mod-php4: Support for Postgresql seems to be missing

--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 03, 2005 at 08:51:53PM +0100, Hans Spaans wrote:
> >So try as Andreas say:
> >If so, is the line
> >"extension=3Dpgsql.so" in your /etc/php4/apache2/php.ini?

> >try restart apache too. It woks for me.

> Yes its now in the file, it wasn't before and I was surprised. Pgsql=20
> worked before and with this config, and other modules like imap and=20
> mysql aren't also in the php.ini but do work. That was the point where I=
=20
> was misled.

> And yes I had restarted apache2, I even rebooted the machine as I=20
> normally do with the weekly upgrade of Sarge on that machine.

If the extensions are not listed in php.ini but you're able to use them,
this is only because your application uses the dl() function to load them
opportunistically. This is good practice.

If pgsql was not usable because it was not listed in php.ini, it is because
the application did not make opportunistic use of the extension but expected
it to be preloaded in the PHP config. This is standard practice.

Since reinstalling the package gave you the correct results, I think the
only possible bug here is #264064 (php4-pgsql installed before
libapache2-mod-php4 does not configure), which is not grave.

--=20
Steve Langasek
postmodern programmer

--ReaqsoxgOBHFXBhH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFB2eZ7KN6ufymYLloRApy5AKCswHejWE54yqb+HZEbiLaKCMUdCgCfV/nX
93FF5/fYux7Ep6iGDgy6Mw8=
=SJw3
-----END PGP SIGNATURE-----

--ReaqsoxgOBHFXBhH--

Revision history for this message
Matt Zimmerman (mdz) wrote :

Closed as invalid in Debian

Changed in php4:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.