Hi This works from command line but with Apache not, what configuration I have to change or do I need to do more users or rights?
#!/usr/bin/perl # print "Content-type: text/plain\n\n" ; use DBI; use strict; my $dbh; my $sth; my @vetor; my $field; $dbh = DBI->connect('DBI:Pg:dbname=mydb', 'visitante', 'Co511b'); if ($dbh) { print "connected\n"; } else { print "Cannot connect to Postgres server: $DBI::errstr\n"; print " db connection failed\n"; } __EN__ with apache and browser it gives : Cannot connect to Postgres server: could not connect to server: Permission denied Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? db connection failed /Raimo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>