Hello,<br><br>I have been using MapServer for about 18 months to serve the base maps for EcoMapCostaRica.com, and more recently, <a href="http://equal-area-maps.com">equal-area-maps.com</a>.<br>Originally, I had a lot of trouble building it for the FreeBSD environment used by my web host (Pair Networks), but a fellow user (Jason Birch) was able to help. I believe this was MapServer 5.2, but could be wrong.<br>
<br>In the past week, Pair upgraded the version of FreeBSD/etc on my server, and not-unexpectedly this broke MapServer.<br>I&#39;ve had more success than last time, and I&#39;ve managed to re-build MapServer. My build was based on Jason&#39;s original instructions, but library &amp; MapServer versions were bumped to their latest (5.4.2 for MapServer). I also configured GDAL to use the internal implementations of libtiff and GeoTIFF, and I skipped PHP  (I don&#39;t use PHP MapScript).<br>
<br>Although it built, the two map applications (both based on OpenLayers) are displaying white tiles instead of their correct MapServer-rendered maps. I&#39;ve tried a few things, including trying to use 24 bit AGG-derived images (interestingly this results in slower display, implying that some of MapServer&#39;s rendering is working? just it isn&#39;t displaying anything?).<br>
<br>I wasn&#39;t making much progress getting these completed applications to work, so I thought I would go &#39;back to basics&#39; and try to get a simple Hello World to work. I&#39;ve just re-entered the Hello World from Bill Kropla&#39;s &quot;Beginning MapServer&quot; book. The resulting hello.map and hello.html are included below. <br>
Needless to say, these are not working. I am getting the strange error of:<br><br>msLoadMap(): Unknown identifier. First token must be MAP, this doesn&#39;t look like a mapfile.
<br><br>What is wrong? I can&#39;t see anything wrong in my MAP file, unless something fundamental has changed in the past couple of versions?  Inserting a new line at the beginning with a &quot;MAP&quot; simply results in a parsing error on line 1!<br>

Is there something to look for in my build process?  I can post the MapServer config if that will help.<br><br>Here is my Hello World HTML:  ( <a href="http://www.winwaed.com/playpen/hello.html">http://www.winwaed.com/playpen/hello.html</a> )<br>
<br>&lt;html&gt;<br>&lt;head&gt;&lt;title&gt;MapServer Hello World&lt;/title&gt;&lt;/head&gt;<br>&lt;body&gt;<br>&lt;form method=&quot;POST&quot; action=&quot;/playpen/mapserv.cgi&quot;&gt;<br>  &lt;input type=&quot;submit&quot; value=&quot;Click Me&quot;&gt;<br>
  &lt;input type=&quot;hidden&quot; name=&quot;MAP&quot; value=&quot;/myhomedir/playpen/hello.map&quot;&gt;<br>  &lt;input type=&quot;hidden&quot; name=&quot;map_web_imagepath&quot; value=&quot;/myhomedir/playpen/tmp/&quot;&gt;<br>
&lt;/form&gt;<br>&lt;img src=&quot;[img]&quot; width=400 height=300 border=0&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br><br>And here is my hello.map file:  ( /playpen/hello.map )<br><br>NAME &quot;Hello_World&quot;<br>SIZE 400 300<br>
IMAGECOLOR 249 245 186<br>IMAGETYPE png<br>EXTENT -1.00 -1.00 1.00 1.00<br>WEB<br>  TEMPLATE &quot;/myhomedir/playpen/hello.html&quot;<br>  IMAGEPATH &quot;/myhomedir/playpen/tmp/&quot;<br>  IMAGEURL &quot;/playpen/tmp/&quot;<br>
END<br>LAYER<br>  STATUS default<br>  TYPE point<br>  FEATURE<br>     POINTS 0.0 0.0 END<br>     TEXT &quot;Hello World&quot;<br>  END<br>  CLASS<br>     STYLE<br>        COLOR 255 0 0<br>     END<br>     LABEL<br>        TYPE bitmap<br>
     END<br>  END<br>END<br>END<br><br><br><br>Fundamentally I am trying to get MapServer working on a Pair server installation (FreeBSD, etc), serving WMS tiles to OpenLayers &quot;MapServer&quot; layer objects. Source data are Shape files and GeoTIFF tiles. Image delivery is currently in the form of PNG, which is preferred over JPEG (too lossy) and GIF (okay for the shapefiles, but not the GeoTIFF-derived imagery).<br>
<br><br>Hopefully someone has some clues as to what is wrong with the Hello World?<br>If I can get this to work, it should give me some clues (or even fix) the main problems I&#39;m having with my applications.<br><br><br>
Cheers,<br><br>Richard Marsden<br><a href="http://www.winwaed.com">http://www.winwaed.com</a><br><br>