<div dir="ltr"><div><div>Hi Andrea,<br><br>You can set the QGIS_LOG_FILE environment variable to have the qgis_mapserv.fcgi process log to a file. It needs to be set within the server process environment (if it has a loadable FCGI module) or within the FCGI-spawning process environment, e.g. uWSGI or spawn-fcgi.<br>
<br></div></div>For Apache:<br><br><IfModule mod_fastcgi.c>  (or mod_fcgid.c)<br>  ...<br>  SetEnv QGIS_LOG_FILE /path/to/qgis_server.log<br></IfModule><br><div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">
Of course, the log needs to be writable by your Apache or FCGI-spawning process user.<br><br></div><div class="gmail_extra">NOTE: if using latest master builds (or upcoming 2.4 release), the env var is now QGIS_SERVER_LOG_FILE, with the new env var QGIS_SERVER_LOG_LEVEL to define verbose level [0,1].<br>
<br>I haven't tested this, but the amount of debug output is usually relative to the CMake build type, e.g. Release vs. RelWithDebInfo or Debug, like is the case for the QGIS desktop output. Pretty sure that is always a compile-time choice, and can't be be overridden at run-time. Your qgis_mapserv.fcgi binary may need to be (re)built as RelWithDebInfo or Debug to trigger enough output to debug your issue.<br>
<br>[0] <a href="https://github.com/qgis/QGIS/commit/29c39b9f0209ddedd0d51eda1dc926e6e0f2ea9e">https://github.com/qgis/QGIS/commit/29c39b9f0209ddedd0d51eda1dc926e6e0f2ea9e</a><br>[1] <a href="https://github.com/qgis/QGIS/commit/bdf1ac8d46d89869e58884c5f55ff711a1f5f76d">https://github.com/qgis/QGIS/commit/bdf1ac8d46d89869e58884c5f55ff711a1f5f76d</a><br>
<br></div><div class="gmail_extra">Regards,<br clear="all"></div><div class="gmail_extra"><div><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota</div>
<br><br><div class="gmail_quote">On Sat, Jun 21, 2014 at 9:25 AM, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<br>
Our qgis-server is crashing on a project .<br>
This is quite strange because on the same project on a qi-desktop (on<br>
another machine) it run without any problem.<br>
And also the qgis-server run without any problem with another different project.<br>
<br>
I try to read from the log of server web to see any useful information<br>
but the log none report of qgis.<br>
The web server ,og come from the stdout so perhaps there is some<br>
specific setting to say to QS to output to stdout log ?<br>
<br>
Thx,<br>
<span class=""><font color="#888888"><br>
<br>
--<br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty àèìòù<br>
-----------------<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></font></span></blockquote></div><br></div></div></div></div></div>