<p>Hello all;</p><p>I have the same problem with MS4W. &nbsp;I have set up the MS4W succesfully. But I can&#39;t set up the demo file. I can&#39;t understand which files should be edited and where to store these files on apache server and also map server. I am looking forward to solve this problem. Unfortunately I can&#39;t find the sections needed to be edited in the demo folder in index.html file. I am also very upset about this problem. My aim is to understand how to use map server and develop my own applications. </p>
<p>Kind regards.&nbsp;</p><p>Cemre Y.&nbsp;<br></p><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 5:44 PM, Brent Fraser <span dir="ltr">&lt;<a href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d"><br>
<br>
tuckeratwork wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;ve made scores of edits to those three sections. &nbsp;This is how I think they<br>
really should be:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;// EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP<br>
 &nbsp; &nbsp; &nbsp; &nbsp;var snippet = &quot;IMAGEPATH &#39;/workshop/tmp/&#39;&quot;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;snippet += &quot; IMAGEURL &#39;/tmp/&#39;&quot;;<br>
<br>
and<br>
<br>
 &nbsp; &nbsp;&lt;!-- EDIT THE FORM ACTION --&gt;<br>
 &nbsp; &nbsp;&lt;form name=&quot;demo&quot; method=&quot;GET&quot; action=&quot;/cgi-bin/mapserv.exe&quot;<br>
onSubmit=&quot;configure()&quot;&gt;<br>
<br>
and<br>
<br>
 &nbsp; &nbsp; &nbsp;&lt;!-- EDIT THESE HIDDEN VARIABLES --&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;input type=&quot;hidden&quot; name=&quot;map&quot; value=&quot;/workshop/itasca.map&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;input type=&quot;hidden&quot; name=&quot;program&quot; value=&quot;/cgi-bin/mapserv.exe&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;input type=&quot;hidden&quot; name=&quot;root&quot; value=&quot;/workshop&quot;&gt;<br>
<br>
<br>
Launching the index.html file produces:<br>
<br>
mLoadMap(): Unable to access file. (/workshop/itasca.map)<br>
<br>
The file &quot;htdocs/workshop/itasca.map&quot; does exist but it obviously isn&#39;t<br>
going through the Apache path to get there.<br>
<br>
What am I doing wrong? &nbsp;This is terribly embarrassing...<br>
</blockquote>
<br>
<br></div>
No need to be embarassed; this is one of the most difficult things to do with Mapserver (the other is coordinate systems and EXTENT). &nbsp;The Itasca Workshop demo is set up for Linux, so the paths are not very typical for a Windows installation. And some of the variables are relative to the Web Server&#39;s Document Root and others are relative to the Windows file system Root. &nbsp;And for MS4W, some paths are &quot;aliased&quot; in Apache&#39;s hppd.conf file!<br>

<br>
Here are some Windows-style values (I&#39;m doing this from memory, so some tweaking may be required) appropriate for an MS4W install:<br>
<br>
IMAGEPATH &#39;C:\ms4w\tmp\ms_tmp\&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- relative to file system root<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- forward or back slashes ok; drive letters ok (but not &quot;mapped&quot; shared drives)<br>
<br>
IMAGEURL &#39;/ms_tmp/&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- relative to Apache document root (C:\ms4w\Apache\htdocs)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- for MS4W, this is aliased in Apache&#39;s hppd.conf file<br>
<br>
map &nbsp; &nbsp; &quot;C:\ms4w\Apache\htdocs\workshop\itasca.map&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- relative to file system root<br>
<br>
program &quot;/cgi-bin/mapserv.exe&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- relative to Apache document root  &nbsp; &nbsp; &nbsp; &nbsp;- for MS4W, this is aliased in Apache&#39;s hppd.conf file<br>
<br>
root &nbsp; &nbsp;&quot;/workshop&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- I&#39;m not sure about this one, my guess is it is relative to Apache document root<br>
<br>
And as Jeff M. points out, there are demos available on the MS4W site that are pre-configured to work painlessly with MS4W. &nbsp;<br>
Good luck!<br><font color="#888888">
<br>
Brent Fraser</font><div><div class="Wj3C7c"><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></blockquote></div><br>