URN Logo
UNIX Resources » Linux » Linux Forum » Linux cPanel Help » Page.1 » Postgresql Issue
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Postgresql Issue
Author: virtuoso    Posted: 2004-08-30 18:22:34    Length: 2,121 byte(s)
[Original] [Print] [Top]
Client emailed...

Here is the request:

Being able to login wih SSH, I could see that I don't have access to PostgreSQL configuration files. The thing is that we need remote access to the database. We need to access the database remotely so that we can see all the tables and fields from inside our local development environment. This remote access is being configured through the setup of a local Data Source Name, using PostgreSQL ODBC driver, but the following error message is being issued:

Data Link Error
Test Connection failed because of provider initialization error.
Could not connect to the server;
Could not connect to remote socket.

I know we should configure PostgreSQL configuration files for remote access (pg_hba.conf), but logging in with SSH I could see that I don't seem to have access to this file. Could you setup this permission for us? (since for the time I have a fixed IP address, you could even restrict DB access to my IP address only!).

I can see PHP is now configured for accessing both MySQL as well as PostgreSQL (at first it was configured only for MySQL). But now I receive the following error message issued from the PHP page which tries to access the database:

Warning: pg_pconnect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host localhost and accepting TCP/IP connections on port 5432? in /home/fwintern/public_html/db_pgsql.php on line 72
Database error: Link-ID == false, pconnect failed
PostgreSQL Error: 0 ()
Session halted.

Normally this would indicate that the Postmaster is not running, or most probably that PostgreSQL was started without accepting TCP/IP connections.

What exactly should I do? I am a little concerned about enabling remote access here but is there a way around this without full remote access? Are there security concerns to allow remote access? I have APF firewall installed on this particular server. Also, if necessary HOW would I enable remote access?
[Original] [Print] [Top]
« Previous thread
Quota Issue - All Accounts 0
Linux cPanel Help
Page. 1
Next thread »
Firewall + Cpanel
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:08:30, cost 0.020821809768677 ms.