Menu

PHPLIB and Postgresql

Grobi
2002-03-18
2003-04-10
  • Grobi

    Grobi - 2002-03-18

    I installed PHPLIB 7.2d and Postgresql 7.2 and always get the error:

    Warning: Unable to connect to PostgreSQL server: (null) in /var/phplib-7.2d/php/db_pgsql.inc on line 48
    Database error: Link-ID == false, pconnect failed
    PostgreSQL Error: 0 ()
    Session halted.

    I set all values for the database in the local.inc file and i also can connect with phppgadmin to the postgresql server but not with the script delivered with phplib. With a mysql server all is running fine...

    It would be great if someone could help me.

     
    • Anonymous

      Anonymous - 2003-04-10

      check that you put the port address in for Postgres. The example local file does not include port because it is slighly biased towards MySQL. If you look in the ct_pgsql file, you will see the class variable, Port. There are usually two ports for postgres possibly in use: 5433, and 5432, I believe. But google for 'port postgres' to make sure.

       

Log in to post a comment.