Am 2008-10-16 11:13:35, schrieb Florian Pollini: > Guten Morgen, > > ich habe ein kleines Problem mit Postgre/PGCluster und PHP4/5 in Debian > Etch. > PGCLUSTER läuft in der Version 1.1 (7.4 Postgre). > PHP von Debian ist aktuell PHP Version 4.4.4-8+etch6. Habe aber auch schon > PHP5 probiert. Du sollest bei php5 bleiben, den php4 hat diverse limitierungen... > Fehlermeldung von PHP: > Warning: pg_connect() [function.pg-connect]: Unable to connect to > PostgreSQL server: 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"? Und wie rufts Du es auf? Ich mit sowas wie: ----8<-------------------------------------------------------------------------------- define(DB_HOST, "192.168.0.66"); define(DB_PORT, "5432"); define(DB_NAME, "lists_debian_org"); define(DB_USER, "foobarbaz"); define(DB_PASS, "sagischnischt"); function db_connect($host=DB_HOST, $port=DB_PORT, $database=DB_NAME, $user=DB_USER, $pass=DB_PASS, $link='db_link') { global $$link; $$link=pg_pconnect("host=$host port=$port dbname=$database user=$user password=$pass"); return $$link; } -------------------------------------------------------------------------------------- Wobei mein Test-Cluster derzeit nur aus drei Mashinen besteht... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 +49/177/9351947 50, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature