Re: [INTERFACES] Pg from CGI in Apache - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: [INTERFACES] Pg from CGI in Apache
Date
Msg-id 10665.919022069@sss.pgh.pa.us
Whole thread Raw
In response to Pg from CGI in Apache  (Wolfgang Hottgenroth <whottgen@w3plus.de>)
List pgsql-interfaces
Wolfgang Hottgenroth <whottgen@w3plus.de> writes:
> I tryed to use some functions from the Pg-module from a CGI-script,
> started on a Apache-server. I always get only an error-message, that
> Dynaloader can not resolve the symbols from Pg, althrough I am able to
> start the scripts directly from the shell without problems.
> Did anyone knows problems like that?

Lack of an appropriate environment variable setting in the CGI context
is probably the problem --- LD_LIBRARY_PATH (or your platform's
equivalent) is the first thing I'd check for.  You may also find that
your scripts are depending on other things in your shell environment,
like PGHOST, PGPASSWORD, etc...

            regards, tom lane

pgsql-interfaces by date:

Previous
From: "Ken J. Wright"
Date:
Subject: ODBC authentication failure
Next
From: Tom Lane
Date:
Subject: Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?!