<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Mon, Jul 1, 2013 at 5:50 PM, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Nick,<div><br></div><div>As I vaguely recall from when I worked on fastcgi support in MapServer, only output formats that can be redirected through the low level mapserver io layer (ms_io*.c) will work properly in fastcgi mode.  I'm guessing the svg encoder just writes directly to stdout.  If my theory is correct, non-trivial code changes would be necessary to make this work.</div>

<div><br></div><div><br></div></div></blockquote><div><br></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Thanks Frank, that actually makes perfect sense.  I'm not all that familiar, but it seems that I read somewhere that a legacy version of mapserver had native SVG support, which in turn would work with fastcgi?  Seems I also read native support is on the wish list for a future release as well.</span> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">On Mon, Jul 1, 2013 at 5:16 PM, Nick Webb <span dir="ltr"><<a href="mailto:nickw@redwireservices.com" target="_blank">nickw@redwireservices.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">List,
<div><br></div><div>I've really tried hard to nail this down, but it makes no sense to me.  I'm not a map guy, but am a system administrator for one.</div><div><br></div><div>We have a mapserver setup that works fine for both PNG and SVG when we use the standard apache cgi module.  When we switch to mod_fcgid, however, SVG displays no output in the browser and instead seems to output proper SVG/XML to the apache error log!  PNG continues to work fine.</div>


<div><br></div><div>I'm flabbergasted and nothing I try seems to work.  I even set it up on another server and I get the same result, given I'm following the same build steps.</div><div><br></div>
<div>Any ideas on where I can go next?</div><div><br></div><div>Perhaps the SVG is not really valid, but I've copied and pasted the XML/SVG from the error_log to a static file, and that also displays fine via a browser.</div>


<div><br></div><div>Here is the error_log output:</div><div><br></div><div><?xml version="1.0" encoding="UTF-8"?><br></div><div><div><svg xmlns="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>" xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.org/1999/xlink</a>" width="200pt" height="154pt" viewBox="0 0 200 154" version="1.1"></div>


<div><g id="surface0"></div><div>. . . </div><div><div></g></div><div></svg></div></div><div><div>[Tue Jul 02 00:12:11.947149 2013] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118" target="_blank">50.197.85.9:2118</a>] mod_fcgid: stderr: CGI Request 1 on process 2405</div>


<div><div>[Tue Jul 02 00:12:<a href="tel:11.947213%202013" value="+19472132013" target="_blank">11.947213 2013</a>] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118" target="_blank">50.197.85.9:2118</a>] mod_fcgid: stderr: msDrawMap(): rendering using outputformat named svg (CAIRO/SVG).</div>


<div>[Tue Jul 02 00:12:<a href="tel:11.947223%202013" value="+19472232013" target="_blank">11.947223 2013</a>] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118" target="_blank">50.197.85.9:2118</a>] mod_fcgid: stderr: msDrawMap(): WMS/WFS set-up and query, 0.000s</div>

<div>[Tue Jul 02 00:12:<a href="tel:11.947230%202013" value="+19472302013" target="_blank">11.947230 2013</a>] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118" target="_blank">50.197.85.9:2118</a>] mod_fcgid: stderr: msDrawMap(): Layer 0 (thematic), 0.040s</div>


<div>[Tue Jul 02 00:12:<a href="tel:11.947238%202013" value="+19472382013" target="_blank">11.947238 2013</a>] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118" target="_blank">50.197.85.9:2118</a>] mod_fcgid: stderr: msDrawMap(): Drawing Label Cache, 0.000s</div>

<div>[Tue Jul 02 00:12:<a href="tel:11.947245%202013" value="+19472452013" target="_blank">11.947245 2013</a>] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118" target="_blank">50.197.85.9:2118</a>] mod_fcgid: stderr: msDrawMap() total time: 0.040s</div>


<div>[Tue Jul 02 00:12:<a href="tel:11.947253%202013" value="+19472532013" target="_blank">11.947253 2013</a>] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.69:2118" target="_blank">50.197.85.69:2118</a>] mod_fcgid: stderr: msSaveImage(stdout) total time: 0.005s</div>

<div>[Tue Jul 02 00:12:<a href="tel:11.947261%202013" value="+19472612013" target="_blank">11.947261 2013</a>] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118" target="_blank">50.197.85.9:2118</a>] mod_fcgid: stderr: mapserv request processing time (msLoadMap not incl.): 0.045s</div>


<div>[Tue Jul 02 00:12:<a href="tel:11.947268%202013" value="+19472682013" target="_blank">11.947268 2013</a>] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118" target="_blank">50.197.85.9:2118</a>] mod_fcgid: stderr: msFreeMap(): freeing map at 0x8881a0.</div>

</div></div><div><br></div><div>
<br></div><div>DEBUG 5 is set logging to the same file (stderr).</div><div><br></div></div><div><br></div><div><div>./mapserv -v</div><div>MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE</div>


<div><br></div><div><br></div><div>Thanks,</div><div>Nick</div></div></div>
<br></div></div>_______________________________________________<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>
<br></blockquote></div><span class=""><font color="#888888"><br><br clear="all"><div><br></div>-- <br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>

light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush    | Geospatial Software Developer<br>
</font></span></div>
</blockquote></div><br></div></div>