PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : php4 postgres



joinandlose
25.08.02, 15:23
hi
mit diesem script versuche ich mich mit der server zu verbinden:

<?php
$conn = pg_connect ("host=192.168.0.10 port=5432
tty=TTY options=optionen dbname=stefan
user=postgres password=test "); <---------- line 15

/*$conn = pg_connect ("dbname=stefan");*/
?>

es kommt aber diese fehlermeldung:
Warning: Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host 192.168.0.10 and accepting TCP/IP connections on port 5432? in /usr/local/httpd/htdocs/index.html.php4 on line 15

in der etc/services sind die ports frei
kann mir da bitte jemand helfen...

gruss joinandlose

joinandlose
25.08.02, 15:51
bin wieder ein stück weiter :)

habe jetzt in der postgresql.conf port 5432 usw eingestellt

jetzt kommt aber:
Warning: Unable to connect to PostgreSQL server: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. in /usr/local/httpd/htdocs/index.html.php4 on line 15