I'm trying to run a MapServer 5/PostGIS installation on a Centos 6 virtual machine.
I deployed MapServer in my cgi-bin folder, but now when I query (using firefox) mapserv file
with the url [virtual machine local IP]/cgi-bin/mapserv?MAP=/var/www/cgi-bin/[...]
, all I get is an image with the following error message on it :
msDrawMap(): Image handling error. Failed to draw layer named '[name of my layer]'.;msPostGISLayerOpen(): Query error. Database connection failed (FATAL: ident authentification failed for user "foo") with connect string 'user=foo dbname=foo password=foo host=localhost port=5432'
I tried to change setting in pg_hba.conf with no luck. foo database can be accessed with foo as sql user and foo as password using psql command. What can I do ?