Обсуждение: CGI with lilbpq

Поиск
Список
Период
Сортировка

CGI with lilbpq

От
"ADM. Diego Cueva"
Дата:
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


Re: [HACKERS] CGI with lilbpq

От
Vince Vielhaber
Дата:
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
==========================================================================




Re: [HACKERS] CGI with lilbpq

От
Alexzander Blashko
Дата:
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'.


Re: CGI with lilbpq

От
"ADM. Diego Cueva"
Дата:
The www-server (Apache) can't load the library libpq.so, this is the
problem.

Thanks for for your help.