pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
failing to connect to postgresql with php
3+ messages / 3 participants
[nested] [flat]

* failing to connect to postgresql with php
@ 2011-01-17 08:42  victor katemana <developervickatg@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: victor katemana @ 2011-01-17 08:42 UTC (permalink / raw)
  To: pgsql-sql

i have installed postgres 8.4 server in ubuntu 10.04, clearly following all
procedures. what is disappointing me i cant establish connection to the
database server when am configuring postgres with php. whenever i use this
postgres database function i dont even receive an error message. the server
just remains quite. more on than when i execute the command

#psql template1 on my terminal i receive this error message

psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
 can someone help me out please

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: failing to connect to postgresql with php
@ 2011-01-17 08:51  Viktor Bojović <viktor.bojovic@gmail.com>
  parent: victor katemana <developervickatg@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Viktor Bojović @ 2011-01-17 08:51 UTC (permalink / raw)
  To: victor katemana <developervickatg@gmail.com>; +Cc: pgsql-sql

On Mon, Jan 17, 2011 at 9:42 AM, victor katemana <developervickatg@gmail.com
> wrote:

> i have installed postgres 8.4 server in ubuntu 10.04, clearly following all
> procedures. what is disappointing me i cant establish connection to the
> database server when am configuring postgres with php. whenever i use this
> postgres database function i dont even receive an error message. the server
> just remains quite. more on than when i execute the command
>
> #psql template1 on my terminal i receive this error message
>
> psql: could not connect to server: No such file or directory
>     Is the server running locally and accepting
>     connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
>  can someone help me out please
>

if not started start it using
/etc/init.d/postgresql-8.3 start



-- 
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: failing to connect to postgresql with php
@ 2011-01-17 09:23  Marcin Mirosław <marcin@mejor.pl>
  parent: victor katemana <developervickatg@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Marcin Mirosław @ 2011-01-17 09:23 UTC (permalink / raw)
  To: pgsql-sql

W dniu 17.01.2011 09:42, victor katemana pisze:
> psql: could not connect to server: No such file or directory
>     Is the server running locally and accepting
>     connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
>  can someone help me out please

Check permissions to the socket.
Regards



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2011-01-17 09:23 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-01-17 08:42 failing to connect to postgresql with php victor katemana <developervickatg@gmail.com>
2011-01-17 08:51 ` Viktor Bojović <viktor.bojovic@gmail.com>
2011-01-17 09:23 ` Marcin Mirosław <marcin@mejor.pl>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox