<div dir="ltr">List,
<div><br></div><div style>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 style><br></div><div style>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 style><br></div><div style>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 style><br></div>
<div style>Any ideas on where I can go next?</div><div style><br></div><div style>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 style><br></div><div style>Here is the error_log output:</div><div style><br></div><div style><?xml version="1.0" encoding="UTF-8"?><br></div><div style><div><svg xmlns="<a href="http://www.w3.org/2000/svg">http://www.w3.org/2000/svg</a>" xmlns:xlink="<a href="http://www.w3.org/1999/xlink">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">50.197.85.9:2118</a>] mod_fcgid: stderr: CGI Request 1 on process 2405</div>
<div><div>[Tue Jul 02 00:12:11.947213 2013] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118">50.197.85.9:2118</a>] mod_fcgid: stderr: msDrawMap(): rendering using outputformat named svg (CAIRO/SVG).</div>
<div>[Tue Jul 02 00:12:11.947223 2013] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118">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:11.947230 2013] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118">50.197.85.9:2118</a>] mod_fcgid: stderr: msDrawMap(): Layer 0 (thematic), 0.040s</div>
<div>[Tue Jul 02 00:12:11.947238 2013] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118">50.197.85.9:2118</a>] mod_fcgid: stderr: msDrawMap(): Drawing Label Cache, 0.000s</div><div>[Tue Jul 02 00:12:11.947245 2013] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118">50.197.85.9:2118</a>] mod_fcgid: stderr: msDrawMap() total time: 0.040s</div>
<div>[Tue Jul 02 00:12:11.947253 2013] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.69:2118">50.197.85.69:2118</a>] mod_fcgid: stderr: msSaveImage(stdout) total time: 0.005s</div><div>[Tue Jul 02 00:12:11.947261 2013] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118">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:11.947268 2013] [fcgid:warn] [pid 2398] [client <a href="http://50.197.85.9:2118">50.197.85.9:2118</a>] mod_fcgid: stderr: msFreeMap(): freeing map at 0x8881a0.</div></div></div><div><br></div><div>
<br></div><div style>DEBUG 5 is set logging to the same file (stderr).</div><div><br></div></div><div style><br></div><div style><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 style>Thanks,</div><div style>Nick</div></div></div>