<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 14pt; color: #000000'>Steps for enabling the access of apache user to postgres server: (Proved in CentOS)<br>
<br>
Usually, the apache user is no login user. You need edit the file /etc/passwd and change this line as root user:<br>
<br>
apache:x:48:48:Apache:/var/www:/sbin/nologin<br>
<br>
by<br>
<br>
apache:x:48:48:Apache:/var/www:/bin/bash<br>
<br>
Then, as root user, you need to execute these command:<br>
&nbsp;<br>
<br>&nbsp;
mkdir /var/www/.ssh
<br>&nbsp;
chown apache /var/www/.ssh
<br>&nbsp;
su - apache
<br>&nbsp;
ssh-keygen<br>
&nbsp;<br>
<br>
Finally, copy the generated file id_rsa.pub, to postgres user home directory in the postgresql servers.<br>
<br>
ssh-copy-id -i ~/.ssh/id_rsa.pub postgres@server_address<br>
<br>
Then, try to copy any file as apache user from apache server to postgresql server.<br>
<br>
Regards.<br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">How to add /var/www/.ssh/id_rsa.pub to<br>/home/postggres/.ssh/authorized_keys on osspc17 and osspc18?<br><br>On 5/30/12, Lazaro Ruben Garcia Martinez &lt;lgarciam@uci.cu&gt; wrote:<br>&gt; The user "apache" is created when you install the apache server (in CentOS<br>&gt; httpd). This step is used if you going to use the pgpoolAdmin tool, because<br>&gt; this tool is developed in PHP running under apache server, for this reason<br>&gt; the user "apache" needs permission over the pgpool's configuration files.<br>&gt;<br>&gt; Regards.<br>&gt;<br>&gt; ----- Mensaje original -----<br>&gt;<br>&gt;&gt; From here:<br>&gt;&gt; #cp /some/where/pgpool.conf /usr/local/etc<br>&gt;&gt; # chown apache /usr/local/etc/pgpool.conf<br>&gt;&gt; # cp /some/where/pcp.conf /usr/local/etc<br>&gt;&gt; # chown apache /usr/local/etc/pcp.conf<br>&gt;<br>&gt;&gt; Do i need to create an apache user?<br>&gt;&gt; Sorry, i'm very new in this particular field.<br>&gt;<br>&gt;&gt; On 5/29/12, Guillaume Lelarge &lt;guillaume@lelarge.info&gt; wrote:<br>&gt;&gt; &gt; On Tue, 2012-05-29 at 16:17 +0800, Freddy Liaw wrote:<br>&gt;&gt; &gt;&gt; Hi,<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; I am following this guide to do my configuration<br>&gt;&gt; &gt;&gt; http://www.pgpool.net/pgpool-web/contrib_docs/simple_sr_setting2_3.1/index.html<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; I get problem start from the Installing pgpool-II section<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; If you want us to help you, you need to tell much more. Read this:<br>&gt;&gt; &gt; http://wiki.postgresql.org/wiki/Guide_to_reporting_problems<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; That may help you to report problems in a better way.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Regards.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; --<br>&gt;&gt; &gt; Guillaume<br>&gt;&gt; &gt; http://blog.guillaume.lelarge.info<br>&gt;&gt; &gt; http://www.dalibo.com<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;<br>&gt;&gt; --<br>&gt;&gt; Best Regards,<br>&gt;&gt; Freddy<br>&gt;&gt; _______________________________________________<br>&gt;&gt; pgpool-general mailing list<br>&gt;&gt; pgpool-general@pgpool.net<br>&gt;&gt; http://www.pgpool.net/mailman/listinfo/pgpool-general<br>&gt;<br>&gt;&gt; 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS<br>&gt;&gt; INFORMATICAS...<br>&gt;&gt; CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION<br>&gt;<br>&gt;&gt; http://www.uci.cu<br>&gt;&gt; http://www.facebook.com/universidad.uci<br>&gt;&gt; http://www.flickr.com/photos/universidad_uci<br>&gt;<br>&gt;<br>&gt; 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS<br>&gt; INFORMATICAS...<br>&gt; CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION<br>&gt;<br>&gt; http://www.uci.cu<br>&gt; http://www.facebook.com/universidad.uci<br>&gt; http://www.flickr.com/photos/universidad_uci<br><br><br>-- <br>Best Regards,<br>Freddy<br><br>10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...<br>CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION<br><br>http://www.uci.cu<br>http://www.facebook.com/universidad.uci<br>http://www.flickr.com/photos/universidad_uci<br></blockquote><br></div>
<br><html>
<body>
<a href="http://www.uci.cu/">
<img src="http://universidad.uci.cu/email.gif"/>
</body>
</html>

<br></body></html>