<DIV>Thanks for your reply. when I changed my STAUS to Default it gives me the following error:</DIV>
<DIV> </DIV>
<DIV>msDrawMap(): Image handling error. Failed to draw layer named 'Hotspots'. <BR>msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with connect string 'user=project password=test dbname=Montreal host=132.205.108.60'. <BR>Error reported was 'could not connect to server: Connection refused Is the server running on host "132.205.108.60" and accepting TCP/IP connections on port 5432? '. <BR>This error occured when trying to make a connection to the specified postgresql server. <BR>Most commonly this is caused by <BR>(1) incorrect connection string <BR>(2) you didnt specify a 'user=...' in your connection string <BR>(3) the postmaster (postgresql server) isnt running <BR>(4) you are not allowing TCP/IP connection to the postmaster <BR>(5) your postmaster is not running on the correct port - if its not on 5432 you must specify a 'port=...' <BR>(6) the security on your system does not allow the webserver (usually user 'nobody') to make socket connections to the postmaster
 <BR>(7) you forgot to specify a 'host=...' if the postmaster is on a different machine<BR>(8) you made a typo <BR></DIV>
<DIV>My server is running, what I am not sure is (4) and (5). Can you please explain me how can I check the above. Also the user name and password is the user name and password for the database right?<BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><B><I><A href="mailto:pram@pramcentral.com">pram@pramcentral.com</A></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>----- Original Message -----<BR>From: "w m" <WOKAR1@YAHOO.COM><BR>To: "PostGIS Users Discussion" <POSTGIS-USERS@POSTGIS.REFRACTIONS.NET><BR>Subject: Re: [postgis-users]CONNECTION to database thru Mapserver<BR>Date: Mon, 14 Mar 2005 09:02:56 -0800 (PST)<BR><BR>> <BR>> Thank You for your response.<BR>> i made the changes that you suggested but i still have no luck in <BR>> displaying the points on the map. I'm not sure if a connection is <BR>> being established to the database or not...how can i know that?? <BR>> and instead of local host i also tried to insert the ip address of <BR>> my server but it still didnt work nor did i get any errors.<BR>> any help would be appreciated greately<BR>> thank you<BR>> wokar<BR>> <BR>> LAYER<BR>> CONNECTIONTYPE postgis<BR>> NAME "Spots" # my table name<BR>> CONNECTION "user=test password=test
 dbname=MyDataBase host=localhost"<BR>> DATA "the_geom FROM Spots" # the_geom column from table Spots<BR>> STATUS ON<BR>> TYPE POINT<BR>> CLASS<BR>> COLOR 0 0 0<BR>> OUTLINECOLOR 0 0 0<BR>> SIZE 2<BR>> END<BR>> END<BR>> <BR>Have you tried with STATUS DEFAULT instead of STATUS ON<BR><BR>-Prashanth<BR>--<BR>HTMLX.com<BR>Mapserver, Mapscript, PHP Hosting<BR><BR><BR>_______________________________________________<BR>postgis-users mailing list<BR>postgis-users@postgis.refractions.net<BR>http://postgis.refractions.net/mailman/listinfo/postgis-users<BR></BLOCKQUOTE><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com