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