Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by postgresql.org (Postfix) with SMTP id E9821475ACB for ; Thu, 18 Apr 2002 10:48:13 -0400 (EDT) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2655.55) id ; Thu, 18 Apr 2002 16:37:47 +0200 Received: from rd.francetelecom.com (lsun251.rd.francetelecom.fr [10.193.21.11]) by p-grive.rd.francetelecom.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2GC6T1Q1; Thu, 18 Apr 2002 16:37:43 +0200 Message-ID: <3CBEDA48.517244A2@rd.francetelecom.com> Date: Thu, 18 Apr 2002 16:38:00 +0200 From: "BELLIARD Francois - FT.BD/FTRD/DRHG/RSCL" Organization: FT.BD/FTRD/DRHG/RSCL X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: "Nigel J. Andrews" Cc: "Pgsql-Admin (E-post)" Subject: Re: problem in module Pg with Apache, Perl and SSL References: Content-Type: multipart/alternative; boundary="------------E80963B1C4F4AB035FB41E08" X-Archive-Number: 200204/177 X-Sequence-Number: 4065 --------------E80963B1C4F4AB035FB41E08 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit The web server is not chrooted and when Apache is started, the LD_LIBRARY_PATH variable points to all the directories containing the libraries "Nigel J. Andrews" wrote: On Wed, 17 Apr 2002, Morten Sickel wrote: > BELLIARD Francois wrote: > [Snip] > >When a Perl Cgi script tries to load the "Pg" module (use Pg; in the > script), > >there is the following error in the Apache Error Log : > [Snip] > > I cannot find any 'Pg' module at CPAN, but if you are using the DBD-Pg, you > are not supposed to have any 'use Pg;' in your code, but rather > use DBI; Or of course he could be using the Pg module :) As for the problem of not finding the library file. You say they exist, you presumably have checked they exist at the paths in the root filesystem the error message mentions. Is your web server/cgi-bin program running in a chroot box? -- Nigel J. Andrews Director --- Logictree Systems Limited Computer Consultants ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org -- François BELLIARD FTR&D/DRHG/RSCL - (33) (0)2 96 05 22 51 --------------E80963B1C4F4AB035FB41E08 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit The web server is not chrooted and when Apache is started, the LD_LIBRARY_PATH variable points to all the directories containing the libraries
 

"Nigel J. Andrews" wrote:

On Wed, 17 Apr 2002, Morten Sickel wrote:

> BELLIARD Francois wrote:
> [Snip]
> >When a Perl Cgi script tries to load the "Pg" module  (use Pg;  in
the
> script),
> >there is the following error in the Apache Error Log :
> [Snip]
>
> I cannot find any 'Pg' module at CPAN, but if you are using the
DBD-Pg, you
> are not supposed to have any 'use Pg;' in your code, but rather
> use DBI;

Or of course he could be using the Pg module :)

As for the problem of not finding the library file. You say they exist,
you
presumably have checked they exist at the paths in the root filesystem
the
error message mentions. Is your web server/cgi-bin program running in a
chroot
box?

--
Nigel J. Andrews
Director

---
Logictree Systems Limited
Computer Consultants

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

-- 

François BELLIARD
FTR&D/DRHG/RSCL - (33) (0)2 96 05 22 51
  --------------E80963B1C4F4AB035FB41E08--