On Sat, 6 Jun 1998, ADM. Diego Cueva wrote:

> 
> Hi Everybody.
> 
> I have problems with my CGI programs in C.
> When i execute the CGI, the message "Internal Server Error" is displayed 
> in the browser.
> This error only ocurr when i compile the programs using -lpq
> 
> Exist documentation about this ?

Make sure the web user (whatever user the web server runs as) has access
to the database and table.  It needs to at least be able to select.

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH   email: vev@michvhf.com   flame-mail: /dev/null
       # include <std/disclaimers.h>                   TEAM-OS2
   Online Searchable Campground Listings    http://www.camping-usa.com
              "I'm just not a fan of promoting stupidity!
            We have elected officials for that job!" -- Rock
==========================================================================




Fri, 5 Jun 1998 12:56:53 -0400 (EDT)
Vince Vielhaber <vev@michvhf.com>
Re: [HACKERS] CGI with lilbpq

Hi Everybody.

I have problems with my CGI programs in C.
When i execute the CGI, the message "Internal Server Error" is displayed 
in the browser.
This error only ocurr when i compile the programs using -lpq

Exist documentation about this ?

PLEASE:
H  H HHHH H    HHHH
H  H H    H    H   H
HHHH HH   H    HHHH
H  H H    H    H
H  H HHHH HHHH H

I have:
Linux 2.0.30
PostgreSQL 6.1.1

dcueva@fenix.sis.epn.edu.ec


Sat, 6 Jun 1998 12:28:39 -0500 (EST)
"ADM. Diego Cueva" <dcueva@fenix.sis.epn.edu.ec>
CGI with lilbpq
On Sat, 6 Jun 1998, ADM. Diego Cueva wrote:

> 
> Hi Everybody.
> 
> I have problems with my CGI programs in C.
> When i execute the CGI, the message "Internal Server Error" is displayed 
> in the browser.
> This error only ocurr when i compile the programs using -lpq
> 
> Exist documentation about this ?
> 
> PLEASE:
> H  H HHHH H    HHHH
> H  H H    H    H   H
> HHHH HH   H    HHHH
> H  H H    H    H
> H  H HHHH HHHH H
> 
> I have:
> Linux 2.0.30
> PostgreSQL 6.1.1
> 
> dcueva@fenix.sis.epn.edu.ec
> 
> 

What www-server do you use ?
Working with apache I have to create user 'nobody'.


Mon, 8 Jun 1998 16:03:09 +0300 (EEST)
Alexzander Blashko <black@lins.ospu.odessa.ua>
Re: [HACKERS] CGI with lilbpq

The www-server (Apache) can't load the library libpq.so, this is the
problem.

Thanks for for your help.


Tue, 9 Jun 1998 08:38:16 -0500 (EST)
"ADM. Diego Cueva" <dcueva@fenix.sis.epn.edu.ec>
Re: CGI with lilbpq