Re: problem connecting to postgres via apache

Поиск
Список
Период
Сортировка
От Susan Cassidy
Тема Re: problem connecting to postgres via apache
Дата
Msg-id CAE3Q8on8iKmfogweULXU5wsD7QD_f2GCCpCCoBs_LU_EBcLeGg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: problem connecting to postgres via apache  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: problem connecting to postgres via apache
Re: problem connecting to postgres via apache
Список pgsql-general
I've already checked that.  It is enabled.  I am running Scientific Linux.


On Fri, Jan 24, 2014 at 8:28 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Susan Cassidy <susan.cassidy@decisionsciencescorp.com> writes:
> $dbh = DBI->connect("dbi:Pg:dbname=$dbname;host=${dbserver};port=$dbport;",
> $dbuser, $dbpasswd) or
>  errexit( "Unable to connect to dbname $dbname, err: $DBI::errstr");

> The exact same connection string works fine in a standalone perl program.

Given the permissions errors you mentioned upthread, I'm wondering whether
you're running on Red Hat/CentOS, and if so whether SELinux is preventing
apache from connecting to unexpected port numbers.  I seem to recall
that there's a SELinux boolean specifically intended to allow or disallow
database connections from webservers, but I couldn't tell you the name
offhand.

                        regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: problem connecting to postgres via apache
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: problem connecting to postgres via apache