<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: How Do I Enable remote access to PostgreSQL database server?</title> <atom:link href="http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Dave Neathery</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-178271</link> <dc:creator>Dave Neathery</dc:creator> <pubDate>Mon, 09 Jan 2012 15:26:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-178271</guid> <description>I am trying to access postgresql from a C program running on Win XP. The database server is Linux and I can connect with it using SSH and psql but I have had not success connecting using PQconnectdb. I get the following error:
libintl-8.dll was not found. I&#039;m using Microsoft Visual C++ .NET 2003. That .dll is not on the computer and I don&#039;t know how to get one.
Thanks,
Dave</description> <content:encoded><![CDATA[<p>I am trying to access postgresql from a C program running on Win XP. The database server is Linux and I can connect with it using SSH and psql but I have had not success connecting using PQconnectdb. I get the following error:<br
/> libintl-8.dll was not found. I&#8217;m using Microsoft Visual C++ .NET 2003. That .dll is not on the computer and I don&#8217;t know how to get one.<br
/> Thanks,</p><p>Dave</p> ]]></content:encoded> </item> <item><title>By: Bandhalaraja</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-176007</link> <dc:creator>Bandhalaraja</dc:creator> <pubDate>Thu, 24 Nov 2011 11:54:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-176007</guid> <description>Hi
i unable to access data base form client said computer.2 days before i can access data base in my client computer(Windows xp) but now not able , because i reinstall postgres in my data base server machine(SUSE Linux) . regularly i give host ip address in my client computer but now i give mean not access .
Please tell me solution to access data base from server machine (Linux) to client computer (Win xp)
Regards
Bandhalaraja</description> <content:encoded><![CDATA[<p>Hi<br
/> i unable to access data base form client said computer.2 days before i can access data base in my client computer(Windows xp) but now not able , because i reinstall postgres in my data base server machine(SUSE Linux) . regularly i give host ip address in my client computer but now i give mean not access .<br
/> Please tell me solution to access data base from server machine (Linux) to client computer (Win xp)</p><p>Regards<br
/> Bandhalaraja</p> ]]></content:encoded> </item> <item><title>By: Marcio Wesley Borges</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-168756</link> <dc:creator>Marcio Wesley Borges</dc:creator> <pubDate>Mon, 14 Feb 2011 19:58:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-168756</guid> <description>Nice article.
Note that the listen_addresses must be comma separated as:
listen_addresses=&#039;202.54.1.2, 202.54.1.3&#039;</description> <content:encoded><![CDATA[<p>Nice article.<br
/> Note that the listen_addresses must be comma separated as:<br
/> listen_addresses=&#8217;202.54.1.2, 202.54.1.3&#8242;</p> ]]></content:encoded> </item> <item><title>By: Jared</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-166774</link> <dc:creator>Jared</dc:creator> <pubDate>Wed, 29 Dec 2010 16:33:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-166774</guid> <description>Thanks!</description> <content:encoded><![CDATA[<p>Thanks!</p> ]]></content:encoded> </item> <item><title>By: Joe</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-162352</link> <dc:creator>Joe</dc:creator> <pubDate>Thu, 09 Dec 2010 21:39:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-162352</guid> <description>Works like a charm! Thank you!</description> <content:encoded><![CDATA[<p>Works like a charm! Thank you!</p> ]]></content:encoded> </item> <item><title>By: Jonathan Martell</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-161548</link> <dc:creator>Jonathan Martell</dc:creator> <pubDate>Sat, 27 Nov 2010 22:46:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-161548</guid> <description>Great tip!</description> <content:encoded><![CDATA[<p>Great tip!</p> ]]></content:encoded> </item> <item><title>By: Joris</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-160978</link> <dc:creator>Joris</dc:creator> <pubDate>Thu, 11 Nov 2010 20:48:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-160978</guid> <description>No more need to use IPTABLES, just type some: « sudo ufw allow 5432 » and you&#039;re done ;)
Many thanks!</description> <content:encoded><![CDATA[<p>No more need to use IPTABLES, just type some: « sudo ufw allow 5432 » and you&#8217;re done ;)<br
/> Many thanks!</p> ]]></content:encoded> </item> <item><title>By: mark</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-160348</link> <dc:creator>mark</dc:creator> <pubDate>Fri, 22 Oct 2010 08:22:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-160348</guid> <description>these instructions should be in the postgres documentation! great job, thanks</description> <content:encoded><![CDATA[<p>these instructions should be in the postgres documentation! great job, thanks</p> ]]></content:encoded> </item> <item><title>By: Mike</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-160229</link> <dc:creator>Mike</dc:creator> <pubDate>Tue, 19 Oct 2010 19:16:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-160229</guid> <description>Thanks for the doc: it resolved my issue.
There is a small syntax error in your listen_addresses field (step #3): the list should be comma (NOT space) separated.</description> <content:encoded><![CDATA[<p>Thanks for the doc: it resolved my issue.</p><p>There is a small syntax error in your listen_addresses field (step #3): the list should be comma (NOT space) separated.</p> ]]></content:encoded> </item> <item><title>By: srikanth</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-156955</link> <dc:creator>srikanth</dc:creator> <pubDate>Thu, 01 Jul 2010 15:58:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-156955</guid> <description>thanks dude...</description> <content:encoded><![CDATA[<p>thanks dude&#8230;</p> ]]></content:encoded> </item> <item><title>By: SimeON</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-153885</link> <dc:creator>SimeON</dc:creator> <pubDate>Wed, 24 Feb 2010 13:58:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-153885</guid> <description>Hello All,
I have postgre installed via ports and the only config file I have is :
/usr/ports/databases/postgresql82-server/files/patch-src:backend:utils:misc:postgresql.conf.sample
Any idea of what could it be ?</description> <content:encoded><![CDATA[<p>Hello All,</p><p>I have postgre installed via ports and the only config file I have is :<br
/> /usr/ports/databases/postgresql82-server/files/patch-src:backend:utils:misc:postgresql.conf.sample</p><p>Any idea of what could it be ?</p> ]]></content:encoded> </item> <item><title>By: Thiago Lopes</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-153284</link> <dc:creator>Thiago Lopes</dc:creator> <pubDate>Tue, 02 Feb 2010 20:01:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-153284</guid> <description>Hello,
In CentOS 2.6.9-89.0.16.plus.c4smp :
Verify /var/lib/pgsql/data/postgresql.conf :
Not only change:
from:
#tcpip_socket = false
to:
tcpip_socket = true
But too:
from:
#port = 5432
to:
port = 5432
In /var/lib/pgsql/data/pg_hba.conf add:
host name_base name_user 0.0.0.0/0  md5
or
host name_base name_user fixed_ip  md5
:)</description> <content:encoded><![CDATA[<p>Hello,</p><p>In CentOS 2.6.9-89.0.16.plus.c4smp :</p><p>Verify /var/lib/pgsql/data/postgresql.conf :</p><p>Not only change:</p><p>from:<br
/> #tcpip_socket = false</p><p>to:<br
/> tcpip_socket = true</p><p>But too:</p><p>from:<br
/> #port = 5432</p><p>to:<br
/> port = 5432</p><p>In /var/lib/pgsql/data/pg_hba.conf add:</p><p>host name_base name_user 0.0.0.0/0  md5</p><p>or</p><p>host name_base name_user fixed_ip  md5</p><p>:)</p> ]]></content:encoded> </item> <item><title>By: eddie</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-148362</link> <dc:creator>eddie</dc:creator> <pubDate>Wed, 29 Apr 2009 11:27:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-148362</guid> <description>It is working now as I had to use the below ...
http://www.postgresql.org/docs/8.0/interactive/client-authentication.html#AUTH-PG-HBA-CONF</description> <content:encoded><![CDATA[<p>It is working now as I had to use the below &#8230;</p><p><a
href="http://www.postgresql.org/docs/8.0/interactive/client-authentication.html#AUTH-PG-HBA-CONF" rel="nofollow">http://www.postgresql.org/docs/8.0/interactive/client-authentication.html#AUTH-PG-HBA-CONF</a></p> ]]></content:encoded> </item> <item><title>By: eddie</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-148360</link> <dc:creator>eddie</dc:creator> <pubDate>Wed, 29 Apr 2009 10:26:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-148360</guid> <description>I am still having problems connecting. my pg_hba.conf file is thus
# &quot;local&quot; is for Unix domain socket connections only
local   all         all    *   trust
IPv4 local connections:
host    all         all   *      trust
# IPv6 local connections:
host    all         all         ::1/128               ident sameuser
my error message is this
psql -h 127.0.0.1 -d template1
psql: FATAL:  missing or erroneous pg_hba.conf file
HINT:  See server log for details.
what am I doing wrong cause it was working before..</description> <content:encoded><![CDATA[<p>I am still having problems connecting. my pg_hba.conf file is thus<br
/> # &#8220;local&#8221; is for Unix domain socket connections only<br
/> local   all         all    *   trust<br
/> IPv4 local connections:<br
/> host    all         all   *      trust<br
/> # IPv6 local connections:<br
/> host    all         all         ::1/128               ident sameuser</p><p>my error message is this<br
/> psql -h 127.0.0.1 -d template1<br
/> psql: FATAL:  missing or erroneous pg_hba.conf file<br
/> HINT:  See server log for details.</p><p>what am I doing wrong cause it was working before..</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147988</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Sun, 05 Apr 2009 02:25:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147988</guid> <description>No Need to install PostgreSQL on same server. To connect via php, simply specifiy server IP, username and password. You also need to open port using iptables. Also, remote connection between two servers in the same data center is recommended. If you have a two different data center consider security (which can be overcome using SSL connection between db server and php app server) and latency.
HTH</description> <content:encoded><![CDATA[<p>No Need to install PostgreSQL on same server. To connect via php, simply specifiy server IP, username and password. You also need to open port using iptables. Also, remote connection between two servers in the same data center is recommended. If you have a two different data center consider security (which can be overcome using SSL connection between db server and php app server) and latency.</p><p>HTH</p> ]]></content:encoded> </item> <item><title>By: Bradley D. Thornton</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147986</link> <dc:creator>Bradley D. Thornton</dc:creator> <pubDate>Sat, 04 Apr 2009 23:42:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147986</guid> <description>Okay, that&#039;s great for remote access via ssh. My problem is that there is a PostgreSQL Server in one datacenter, and a php based website in another data center. I&#039;m told that you can&#039;t enable PostgreSQL support in PHP w/o actually installing PostgreSQL Server on that machine, but I don&#039;t want PostgreSQL on the webserver, and I have a customer that want&#039;s to use it via his website w/PHP.
This is what I&#039;ve gotten so far from php.net:
In order to enable PostgreSQL support, --with-pgsql[=DIR] is required when you compile PHP. DIR is the PostgreSQL base install directory, defaults to /usr/local/pgsql. If shared object module is available, PostgreSQL module may be loaded using extension  directive in php.ini or dl()  function.
and from http://us3.php.net/manual/en/pgsql.requirements.php I get:
To use PostgreSQL support, you need PostgreSQL 6.5 or later, PostgreSQL 8.0 or later to enable all PostgreSQL module features.
So my question is, can I, or how can I enable PostgreSQL support in PHP w/o installing the actual database server on that particular machine?
Thanks,
Bradley</description> <content:encoded><![CDATA[<p>Okay, that&#8217;s great for remote access via ssh. My problem is that there is a PostgreSQL Server in one datacenter, and a php based website in another data center. I&#8217;m told that you can&#8217;t enable PostgreSQL support in PHP w/o actually installing PostgreSQL Server on that machine, but I don&#8217;t want PostgreSQL on the webserver, and I have a customer that want&#8217;s to use it via his website w/PHP.</p><p>This is what I&#8217;ve gotten so far from php.net:</p><p>In order to enable PostgreSQL support, &#8211;with-pgsql[=DIR] is required when you compile PHP. DIR is the PostgreSQL base install directory, defaults to /usr/local/pgsql. If shared object module is available, PostgreSQL module may be loaded using extension  directive in php.ini or dl()  function.</p><p>and from <a
href="http://us3.php.net/manual/en/pgsql.requirements.php" rel="nofollow">http://us3.php.net/manual/en/pgsql.requirements.php</a> I get:</p><p>To use PostgreSQL support, you need PostgreSQL 6.5 or later, PostgreSQL 8.0 or later to enable all PostgreSQL module features.</p><p>So my question is, can I, or how can I enable PostgreSQL support in PHP w/o installing the actual database server on that particular machine?</p><p>Thanks,</p><p>Bradley</p> ]]></content:encoded> </item> <item><title>By: Louis</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147968</link> <dc:creator>Louis</dc:creator> <pubDate>Fri, 03 Apr 2009 09:15:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147968</guid> <description>Hi all ,
Here is the error message for my issue,
12204 SSL port specified is not allowed.
An error occurred while trying to retrieve your URL.
This error could have been caused by:
Bad / misspelled URL
Your access permissions
Your network connection and/or transient conditions on the Internet
An error on the source web server
Hence, its running on Linux Debian and port 10000 ,
Thaxs</description> <content:encoded><![CDATA[<p>Hi all ,</p><p>Here is the error message for my issue,</p><p>12204 SSL port specified is not allowed.<br
/> An error occurred while trying to retrieve your URL.<br
/> This error could have been caused by:<br
/> Bad / misspelled URL<br
/> Your access permissions<br
/> Your network connection and/or transient conditions on the Internet<br
/> An error on the source web server</p><p>Hence, its running on Linux Debian and port 10000 ,<br
/> Thaxs</p> ]]></content:encoded> </item> <item><title>By: Louis</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147967</link> <dc:creator>Louis</dc:creator> <pubDate>Fri, 03 Apr 2009 09:11:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147967</guid> <description>Hi all,
Now, when i tried to log in , below is the error for yours references :
12204 SSL port specified is not allowed.
An error occurred while trying to retrieve your URL.
This error could have been caused by:
Bad / misspelled URL
Your access permissions
Your network connection and/or transient conditions on the Internet
An error on the source web server
--------------------------------------------------------------------------------
Microsoft Proxy Server v2.0
And also , this postgresql is running on Linux Debian , port number 10000 for it.
Thanks</description> <content:encoded><![CDATA[<p>Hi all,</p><p>Now, when i tried to log in , below is the error for yours references :</p><p>12204 SSL port specified is not allowed.</p><p>An error occurred while trying to retrieve your URL.<br
/> This error could have been caused by:</p><p>Bad / misspelled URL<br
/> Your access permissions<br
/> Your network connection and/or transient conditions on the Internet<br
/> An error on the source web server</p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>Microsoft Proxy Server v2.0</p><p>And also , this postgresql is running on Linux Debian , port number 10000 for it.</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Louis</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147966</link> <dc:creator>Louis</dc:creator> <pubDate>Fri, 03 Apr 2009 09:09:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147966</guid> <description>Hi all,
Now, i m facing problem in log in to postgresql by webmin interface. Problem is that all a long I used to login postgresql DB by webmin interface and able to login smoothly . But last few days ago , i &#039;ve changed the root (super user) password and not able to log in at all . I believe password has been wrong for over 3 times and IP address has been blocked .
Hence , I &#039;ve tried to login from different IP address and also the same thing encountering.
I &#039;m using Postgresql very 7 +  . Kindly pls help me to solve my problem by how to enable such thing back to normal . There is no IP talbes restrictions .
Looking forward to your solutions..</description> <content:encoded><![CDATA[<p>Hi all,</p><p>Now, i m facing problem in log in to postgresql by webmin interface. Problem is that all a long I used to login postgresql DB by webmin interface and able to login smoothly . But last few days ago , i &#8216;ve changed the root (super user) password and not able to log in at all . I believe password has been wrong for over 3 times and IP address has been blocked .<br
/> Hence , I &#8216;ve tried to login from different IP address and also the same thing encountering.<br
/> I &#8216;m using Postgresql very 7 +  . Kindly pls help me to solve my problem by how to enable such thing back to normal . There is no IP talbes restrictions .</p><p>Looking forward to your solutions..</p> ]]></content:encoded> </item> <item><title>By: frankpeng</title><link>http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147662</link> <dc:creator>frankpeng</dc:creator> <pubDate>Sun, 15 Mar 2009 00:50:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html#comment-147662</guid> <description>How is this:
1, Listen to the world *
2, Use md5
3, only those database allowed
4, only specific user.
I will try this.</description> <content:encoded><![CDATA[<p>How is this:<br
/> 1, Listen to the world *<br
/> 2, Use md5<br
/> 3, only those database allowed<br
/> 4, only specific user.<br
/> I will try this.</p> ]]></content:encoded> </item> </channel> </rss>
