4

That the error looks like

enter image description here

enter image description here

The right's are

enter image description here

Anyone there to solve the problem?

post4dirk
  • 313
  • 4
  • 16

3 Answers3

1

The page in the link (http://www.pgpool.net/docs/latest/pgpool-en.html#pcp_comand_password) in the posted solution is no longer present.

I was able to resolve this by copying the .pcppass file from the postgres user's directory to /var/www/ and changing it's owner to the apache system user.

sudo cp /home/postgres/.pcppass /var/www/

sudo chown apache /var/www/.pcppass

sudo chmod 600 /var/www/.pcppass
BrianC
  • 1,793
  • 1
  • 18
  • 26
1

всем привет)

  1. check and define home folder /var/www for www-data(or apache) in /etc/passwd

www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin

  1. check owner and rights

chown www-data /var/www/.pcppass

chmod 0600 /var/www/.pcppass

  1. check .pcppass format

host:port:user:password in plain text

Each of the first three fields can be a literal value, or *, which matches anything

rustem.russia
  • 575
  • 5
  • 6
0

.pcppass file is missing from the specified directory.

To solve the Problem you have todo this:

http://www.pgpool.net/docs/latest/pgpool-en.html#pcp_comand_password

Make sure the .pcppass file has permission 0600. You may also need to change its owner/group to apache/www-data user depending on your system.

post4dirk
  • 313
  • 4
  • 16
  • Not working. I am a root user and has given apache ownership of .pcppass file. Also 0600. Still not wokring. Kindly help – Nitish Kumar Jan 02 '18 at 10:25