cannot connect to postgres through apache/browser? [SOLVED]
Posted: Thu Jul 01, 2010 9:34 am
FC 12 linux, i have apache trying to connect to postgres.
when i try to execute stuff through the browser, i get a connection error (apache error: "could not connect to server: Permission denied. Is the server running on host "localhost" and accepting. TCP/IP connections on port 5432? in /path/to/file.php on line 29, referer: http://10.0.1.2/")
but when i execute a file from the shell (aka. [myuser@localhost ]#php file.php), it all works fine.
could something be wrong with the connectors in apache? i can connect fine from psql too.
thanks
when i try to execute stuff through the browser, i get a connection error (apache error: "could not connect to server: Permission denied. Is the server running on host "localhost" and accepting. TCP/IP connections on port 5432? in /path/to/file.php on line 29, referer: http://10.0.1.2/")
but when i execute a file from the shell (aka. [myuser@localhost ]#php file.php), it all works fine.
could something be wrong with the connectors in apache? i can connect fine from psql too.
thanks