[postgis-users] Mapserver and Postgis

Ezequias Rodrigues da Rocha ezequias at recife.pe.gov.br
Tue Mar 28 04:35:18 PST 2006

Hi list,

I don't know if this is a off-topic, but as nobody from mapserver could 
solve my problem I will report to you now.

I am trying to connect my mapserver project to PostGIS but my browser 
always report the folowing error:
msDrawMap(): Image handling error. Failed to draw layer named 'bairros'.
msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with 
connect string 'user=postgres password=***** dbname=db host=xxx.xxx 
Error reported was 'could not create socket: Permission denied '.
This error occured when trying to make a connection to the specified 
postgresql server.
Most commonly this is caused by
(1) incorrect connection string
(2) you didnt specify a 'user=...' in your connection string
(3) the postmaster (postgresql server) isnt running
(4) you are not allowing TCP/IP connection to the postmaster
(5) your postmaster is not running on the correct port - if its not on 
5432 you must specify a 'port=...'
(6) the security on your system does not allow the webserver (usually 
user 'nobody') to make socket connections to the postmaster
(7) you forgot to specify a 'host=...' if the postmaster is on a 
different machine
(8) you made a typo

Could someone help me. As simple as possible would be very glad.


Ezequias Rodrigues da Rocha
msn:ezequias at hotmail.com
"the worst of democracies is still better than the best of dictatorship"

More information about the postgis-users mailing list