<div dir="ltr"><div>Hi..</div>
<div> </div>
<div>It works with shp2img. I got the png file and it was perfect. </div>
<div> </div>
<div>The wms request doesnt work and thats when I get the error. I am sorry to sound confused but I am not sure about how to proceed. Should I set DEBUG ON in all my layers? What else do I do? Please help.</div>
<div> </div>
<div>Thanks.<br><br></div>
<div class="gmail_quote">On Sat, Jan 9, 2010 at 4:45 PM, Dan Little <span dir="ltr"><<a href="mailto:danlittle@yahoo.com">danlittle@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="BORDER-RIGHT: #ccc 1px solid; PADDING-RIGHT: 1ex; PADDING-LEFT: 1ex; MARGIN: 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<div>Try testing it with shp2img and see if you still get the same error. Also, you may need to try the whole thing under GDB or with debugging turned on.</div>
<blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
<div style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><br>
<div style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><font face="Tahoma" size="2"><b><span style="FONT-WEIGHT: bold">From:</span></b> Shaz N <<a href="mailto:geo.engineer123@gmail.com" target="_blank">geo.engineer123@gmail.com</a>><br>
<b><span style="FONT-WEIGHT: bold">To:</span></b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br><b><span style="FONT-WEIGHT: bold">Sent:</span></b> Fri, January 8, 2010 11:27:12 PM<br>
<b><span style="FONT-WEIGHT: bold">Subject:</span></b> [mapserver-users] Premature end of script headers: mapserv<br></font>
<div>
<div></div>
<div class="h5"><br>
<div dir="ltr">
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New">Hi users..</font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"> </font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New">I have been adding a few new shapefiles to my existing map file. I am a facing a new problem since last evening. I added 9 shapefiles successfully and could view the map in the browser. While adding the 10th shapefile I got an error. All the new shapefiles are simple point shapefiles. </font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New">Example: LAYER<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span>NAME 'sc'<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span>CONNECTIONTYPE postgis<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span>CONNECTION " "<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span>DATA "the_geom from sc"<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span>TEMPLATE "dummy.html"<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span>DEBUG ON<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>TYPE POINT<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>MAXSCALE 10000<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>MINSCALE 2000<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>STATUS DEFAULT<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>LABELITEM "name"<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>LABELCACHE ON<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span lang="AR-SA" dir="rtl"><font face="Courier New"> </font></span></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span>CLASS<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>MAXSCALE 10000<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>MINSCALE 2000<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span><span> </span>STYLE<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>ANTIALIAS TRUE<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>SYMBOL "square"<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>SIZE 9<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>COLOR 153 0 102<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>OUTLINECOLOR 255 255 255<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>END #end style<span> </span><span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>LABEL<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span>ANGLE auto<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span><span> </span>COLOR 153 0 102<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span><span> </span>ANTIALIAS TRUE<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span><span> </span>FONT vera_sans-bold<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span><span> </span>TYPE TRUETYPE<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span><span> </span>SIZE 9<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span><span> </span>POSITION auto<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span><span> </span>PARTIALS false<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span><span> </span><span> </span>BUFFER 1<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><font face="Courier New"><span> </span><span> </span>END #end label<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span>END#end class<span lang="AR-SA" dir="rtl"></span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-INDENT: 0.5in; TEXT-ALIGN: left"><font face="Courier New">END #end layer</font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"> </font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New">This is the error from the error log:</font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"> </font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span style="COLOR: blue"><font face="Courier New">Premature end of script headers: mapserv</font></span></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"> </font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New">And this is what I got using WMS get map request on the browser:</font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span style="COLOR: blue"><font face="Courier New">Internal Server Error</font></span></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span style="COLOR: blue"><font face="Courier New">The server encountered an internal error or misconfiguration and was unable to complete your request.</font></span></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span style="COLOR: blue"><font face="Courier New">Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.</font></span></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span style="COLOR: blue"><font face="Courier New">More information about this error may be available in the server error log.</font></span></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"> </font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New">I checked the shapefile and map file for errors and couldn’t find any. And mapserver has been installed correctly and has been working well. The problem only arises when I add the extra layer. It works well with all the existing ones. </font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New">The map file works on my PHP map display page but when I try it using WMS it does not work.<span> </span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New"><span> </span><span> </span></font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New">I use MapServer 5.0.</font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><span><font face="Courier New"> </font></span></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New">Any help would be greatly appreciated. </font></p>
<p style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; TEXT-ALIGN: left"><font face="Courier New">Thanks in advance.<span> </span></font></p></div></div></div></div></div></blockquote>
<div></div></div><br></div></blockquote></div><br></div>