Re: db dump from php

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jody <jody(dot)xha(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: db dump from php
Date: 2013-01-07 19:19:21
Message-ID: 14944.1357586361@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

jody <jody(dot)xha(at)gmail(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message jody 2013-01-07 21:48:05 Re: db dump from php
Previous Message Andreas Kretschmer 2013-01-07 19:09:24 Re: db dump from php