Results 1 to 4 of 4

Thread: Postgres trouble

  1. #1
    Junior Member renn3r's Avatar
    Join Date
    Jan 2007
    Posts
    37

    Question Postgres trouble

    When i try to run postgres, I get this message :
    Code:
    chown: cannot access `/var/postgres/': No such file or directory
    postmaster cannot access the server configuration file "/var/postgres/postgresql.conf": No such file or directory
    And when I trie command createdb mydb :
    Code:
    createdb: could not connect to database postgres: could not connect to server: No such file or directory
            Is the server running locally and accepting
            connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
    I tried if port 5432 is open, and it isn't.

    When i try locate postgresql.conf I get :
    /home/postgres/unicornscan/postgresql.conf
    /home/postgres/metasploit3/postgresql.conf
    /usr/local/pgsql/share/postgresql.conf.sample

    And when I try to find tcp_socket setting in postgresql.conf, there isn't any.

    Can you pleas help me with this ?

  2. #2
    Junior Member delusr's Avatar
    Join Date
    Jul 2007
    Posts
    31

    Default

    Step by step

    hxxp://forums.remote-exploit.org/showthread.php?t=8003

    replace xx with tt

    Cheers

  3. #3
    Junior Member renn3r's Avatar
    Join Date
    Jan 2007
    Posts
    37

    Default

    I made it, this is how I did:
    I copied entire content of /home/postgres/unicornscan/ to /var/postgres/
    And then chmod 0700 postgres .

    delusr, thank you very much for helping me.

  4. #4
    Junior Member delusr's Avatar
    Join Date
    Jul 2007
    Posts
    31

    Default

    Its good to know someones read it and it work for them like it did for me.

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •