Re: db dump from php - Mailing list pgsql-novice

From Tom Lane
Subject Re: db dump from php
Date
Msg-id 14944.1357586361@sss.pgh.pa.us
Whole thread Raw
In response to Re: db dump from php  (jody <jody.xha@gmail.com>)
Responses Re: db dump from php  (jody <jody.xha@gmail.com>)
List pgsql-novice
jody <jody.xha@gmail.com> writes:
> When i call the php script from the command line, the dump i made.

> When i call it from apache, i get the output

>  pg_dump: [archiver (db)] connection to database "magnus2" failed:
> could not connect to server: Permission denied Is the server running
> locally and accepting connections on Unix domain socket
> "/run/postgresql/.s.PGSQL.5432"?

Does the apache user have permissions to access that socket file?  What
about the directories containing it?

            regards, tom lane


pgsql-novice by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: db dump from php
Next
From: jody
Date:
Subject: Re: db dump from php