<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><br></div></div></div></div></span> </div><br><div><div>On 6-Jul-08, at 6:11 PM, Sebastian Pawlak wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi Jeff,</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp;</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Before I wrote this I decided to try everything once again to see if I could fix the problem.</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I installed the ms4w package on windows xp on the root of my drive. Next I configured the httpd&nbsp;configuration file's document root and server root to: "c:\ms4w\Apache\htdocs". Thats all I did with my ms4w package. Then I wrote my hello.map and index.html pages as follows:</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp;</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;html><br>&lt;head>&lt;title>Hello Map&lt;/title>&lt;/head><br>&lt;body><br>&nbsp;&lt;form method=POST action="\cgi-bin\mapserv"><br>&nbsp;&nbsp;&lt;input type="submit" value="Click Me"><br>&nbsp;&nbsp;&lt;input type="hidden" name="map" value="c:\\ms4w\Apache\htdocs\hello.map"><br>&nbsp;&nbsp;&lt;input type"hidden" name="map_web_imagepath"<span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp;&nbsp;value="c:\ms4w\Apache\htdocs\tmp\"><br>&nbsp;&lt;/form><br>&nbsp;&lt;img src="[img]" width=400 height=300 border=0><br>&lt;/body><br>&lt;/html><br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp;</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp;</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">#This is our "hello world Map File<br>NAME "HELLO WORLD"<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>&nbsp;TEMPLATE "C:\ms4w\Apache\htdocs\index.html"<br>&nbsp;IMAGEPATH "C:\ms4w\Apache\htdocs\TMP\"<br>&nbsp;IMAGEURL "\TMP\"<br>END<br>LAYER<br>&nbsp;STATUS default<br>&nbsp;TYPE point<br>&nbsp;FEATURE<span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp;POINTS 0.0 0.0 END<br>&nbsp;&nbsp;TEXT "hello"<br>&nbsp;END<br>&nbsp;CLASS<br>&nbsp;&nbsp;STYLE<br>&nbsp;&nbsp;&nbsp;COLOR 255 0 0<br>&nbsp;&nbsp;END<br>&nbsp;&nbsp;LABEL<br>&nbsp;&nbsp;&nbsp;TYPE bitmap<br>&nbsp;&nbsp;END<br>&nbsp;END<br>END<br>END<br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp;</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I didn't get a prompt this time asking me to download mapserv so I guess some progress has been made here.</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Do you have any tips here? I'm really stuck!</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp;</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks,</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Sebastian<br></div></div></div></div></span></blockquote></div><div><br></div>Sebastian,<div><br></div><div>MS4W comes configured with an Apache that is ready to run on any drive root, so you should not be editing Apache's httpd.conf file (if you have either undo or extract a fresh copy of MS4W). &nbsp;Once you have extracted a fresh MS4W, you can go to 127.0.0.1 in your browser and click on the various links on that page, showing you that MapServer and Apache are installed properly on your machine.</div><div><br></div><div>Now, for any application that you want to run with your MS4W installation, you should use the following settings in your MapServer applications:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>IMAGEPATH "/ms4w/tmp/ms_tmp/"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>IMAGEURL &nbsp; "/ms_tmp"</div><div><br></div><div>Normal practice for MS4W is that all applications live in the /ms4w/apps/ directory. &nbsp;You can then add Apache aliases to your application's directory in the /ms4w/httpd.d directory. &nbsp; The easiest way to see how this is all setup is to download an add-on package from that MS4W download page (such as the "PHP/MapScript Sample Application" package), refresh your Apache, and go back to the 127.0.0.1 page and look for a new link at the bottom of the page...then you can see how that package sets Apache aliases etc.</div><div><br></div><div>Unfortunately this is different instructions than your book, but the good news is that most of the configuration that that book asks you to do is already done for you with MS4W.</div><div><br></div><div>This is all explained in detail in the MS4W README, which you have in your /ms4w folder, or it is also online:&nbsp;<a href="http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html)">http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html)</a></div><div><br></div><div>Also, MS4W has its own mailing list for configuration questions, if you get stuck..... &nbsp;subscribe at:&nbsp;<a href="http://lists.maptools.org/mailman/listinfo/ms4w-users)">http://lists.maptools.org/mailman/listinfo/ms4w-users)</a></div><div><br></div><div>have fun!</div><div><br><div><br></div><div><div>---</div><div>Jeff McKenna</div><div>FOSS4G Consulting and Training Services</div><div><div><a href="http://www.gatewaygeomatics.com/">http://www.gatewaygeomatics.com/</a></div></div><div><br></div></div></div></body></html>