| From: | Frank Bax <fbax(at)sympatico(dot)ca> | 
|---|---|
| To: | PostgreSQL List - Novice <pgsql-novice(at)postgresql(dot)org> | 
| Subject: | Re: Trouble installing Drupal 5 using sockets (a little long) | 
| Date: | 2008-08-15 02:53:51 | 
| Message-ID: | 48A4EFBF.1000304@sympatico.ca | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-novice | 
Bryan wrote:
>> I suspect you might need to create a symbolic link from one to the other;
>> but I don't know where the "real" one should be.  Perhaps someone else knows
>> that.
> 
> But, the database starts and sees the socket, what part of pgsql is
> not seeing the socket?  Could the fact that I did the "initdb" without
> the /var/www/tmp socket be causing the issue?  Pgsql d
The database SERVER creates the socket, so of course it can see it; the 
problem is that your database CLIENTS do not see the socket.
When you run createuser and createdb; you are running client interfaces 
which expect to communicate with the PG server via the socket at /tmp/ 
but that's not where it is; it is created in /var/www/tmp/ everytime the 
PG server is started.  The conf file tells PG server where to create the 
socket; not where the clients should look for it.
Yes, I presented a workaround.  I also suggested that the proper 
permanent solution is to include creation of a symbolic link on every 
boot; which I don't have the proper syntax for since I've never used it 
(I chose to disable chroot instead).  Here's my guess at command you 
need to add to startup:
ln /var/www/tmp/.s.PGSQL.5432 /tmp/.s.PGSQL.5432
Frank
| From | Date | Subject | |
|---|---|---|---|
| Next Message | johnf | 2008-08-15 04:10:36 | using the system shadow passwd file for remote access | 
| Previous Message | Bryan | 2008-08-15 01:52:49 | Re: Trouble installing Drupal 5 using sockets (a little long) |