<div dir="ltr"><div style="font-size:12.8px">Hi everybody, </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have some problems to run QGIS-Server 2.99.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I'm not sure where the problems exactly come from: mod_fcgid, QGIS-Server or my own settings?</div><div style="font-size:12.8px">With the LTR-Version of QGIS-Server everything works just fine, so I guess the issues are in my environment variables or the current QGIS-Server itself.</div><div style="font-size:12.8px">Hopefully someone is able to answer this question.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The Systems I tried with are (both were clean before):</div><div style="font-size:12.8px">1. </div><div style="font-size:12.8px">Debian stretch</div><div style="font-size:12.8px">Own QGIS-master build AND nightly apt-packages</div><div style="font-size:12.8px">Apache (v2.4.25) with mod_fcgid (v2.3.9)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">2.</div><div style="font-size:12.8px">Windows 7</div><div style="font-size:12.8px">Latest OSGeo4W QGIS-Dev Version</div><div style="font-size:12.8px">Apache 2.4.18 with mod_fcgid (v2.3.7)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">----DEBIAN----</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">When I run the qgis_mapserv.fcgi directly in the command line, everything is fine and I get the right response back.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">##Direct Request</div><div style="font-size:12.8px">QUERY_STRING="SERVICE=WMS&<wbr>VERSION=1.3.0&MAP=/usr/lib/<wbr>cgi-bin/test.qgs&REQUEST=<wbr>GetProjectSettings" QGIS_SERVER_LOG_LEVEL="1" QGIS_SERVER_LOG_FILE="/tmp/<wbr>qgis_server.log" /usr/lib/cgi-bin/qgis_mapserv.<wbr>fcgi</div><div style="font-size:12.8px">(Btw: Another Problem is to store the response of a GetMap-Request in *.png-File 'QUERY_STRING="......REQUEST=<wbr>GetMap" ./qgis_mapserv.fcgi > /tmp/test.png' because the first four lines are ASCII-Informations about QGIS Server. Maybe someone knows a solutions for that as well?)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">##With Apache</div><div style="font-size:12.8px">When I try the same request via Apache I get an "Internal Server Error"</div><div style="font-size:12.8px">Request:</div><div style="font-size:12.8px"><a href="http://localhost/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&MAP=test.qgs&REQUEST=GetProjectSettings" target="_blank">http://localhost/qgis_mapserv.<wbr>fcgi?SERVICE=WMS&VERSION=1.3.<wbr>0&MAP=test.qgs&REQUEST=<wbr>GetProjectSettings</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">apache-config:</div><div style="font-size:12.8px">FcgidIOTimeout 120</div><div style="font-size:12.8px">FcgidInitialEnv LC_ALL "en_US.UTF-8"</div><div style="font-size:12.8px">FcgidInitialEnv PYTHONIOENDCODING UTF-8</div><div style="font-size:12.8px">FcgidInitialEnv LANG "en_US.UTF-8"</div><div style="font-size:12.8px">FcgidInitialEnv QGIS_DEBUG 1</div><div style="font-size:12.8px">FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0</div><div style="font-size:12.8px">FcgidInitialEnv QGIS_SERVER_LOG_FILE /tmp/qgisserver.log</div><div style="font-size:12.8px">DocumentRoot /usr/lib/cgi-bin</div><div style="font-size:12.8px"><Directory "/usr/lib/cgi-bin"></div><div style="font-size:12.8px">    AllowOverride All</div><div style="font-size:12.8px">    Options +ExecCGI -MultiViews +FollowSymLinks</div><div style="font-size:12.8px">    Require all granted</div><div style="font-size:12.8px"></Directory></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">apache-error.log:</div><div style="font-size:12.8px">[Tue Jul 25 12:23:40.844231 2017] [fcgid:warn] [pid 10071:tid 139731590080256] (104)Connection reset by peer: [client ::1:50678] mod_fcgid: error reading data from FastCGI server</div><div style="font-size:12.8px">[Tue Jul 25 12:23:40.844357 2017] [core:error] [pid 10071:tid 139731590080256] [client ::1:50678] End of script output before headers: qgis_mapserv.fcgi</div><div style="font-size:12.8px">[Tue Jul 25 12:23:43.753848 2017] [fcgid:error] [pid 10070:tid 139731678270656] mod_fcgid: process /usr/lib/cgi-bin/qgis_mapserv.<wbr>fcgi(10144) exit(communication error), get unexpected signal 6</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The same error I get on the Windows-Machine. The only difference is, that I'm not able to run the qgis_mapserv.fcgi.exe directly there (=> Qt5Core.dll error)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">----WINDOWS----</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">##Direct - Request</div><div style="font-size:12.8px">Request directly to qgis_mapserv.fcgi.exe (works with LTR-Server) through OSGeo4W-Shell:</div><div style="font-size:12.8px">set QUERY_STRING=SERVICE^=WMS^&<wbr>VERSION^=1.3.0^&MAP^=test.qgs^<wbr>&REQUEST^=GetProjectSettings&<wbr>set QGIS_SERVER_LOG_LEVEL=0&set QGIS_SERVER_LOG_FILE=C:\<wbr>OSGeo4W\qgisserver.txt&C:\<wbr>OSGeo4W\apps\qgis-dev\bin\<wbr>qgis_mapserv.fcgi.exe</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Error-Message:</div><div style="font-size:12.8px">Problemsignatur:</div><div style="font-size:12.8px">  Problemereignisname:<span style="white-space:pre-wrap">      </span>APPCRASH</div><div style="font-size:12.8px">  Anwendungsname:<span style="white-space:pre-wrap">    </span>qgis_mapserv.fcgi.exe</div><div style="font-size:12.8px">  Anwendungsversion:<span style="white-space:pre-wrap">    </span>0.0.0.0</div><div style="font-size:12.8px">  Anwendungszeitstempel:<span style="white-space:pre-wrap">      </span>5976b11e</div><div style="font-size:12.8px">  Fehlermodulname:<span style="white-space:pre-wrap">   </span>Qt5Core.dll</div><div style="font-size:12.8px">  Fehlermodulversion:<span style="white-space:pre-wrap">     </span>5.7.1.0</div><div style="font-size:12.8px">  Fehlermodulzeitstempel:<span style="white-space:pre-wrap">     </span>583ffb6c</div><div style="font-size:12.8px">  Ausnahmecode:<span style="white-space:pre-wrap">      </span>c0000005</div><div style="font-size:12.8px">  Ausnahmeoffset:<span style="white-space:pre-wrap">    </span>0016b14a</div><div style="font-size:12.8px">  Betriebsystemversion:<span style="white-space:pre-wrap">      </span>6.1.7601.2.1.0.256.4</div><div style="font-size:12.8px">  Gebietsschema-ID:<span style="white-space:pre-wrap">      </span>1031</div><div style="font-size:12.8px">  Zusatzinformation 1:<span style="white-space:pre-wrap">   </span>4c0d</div><div style="font-size:12.8px">  Zusatzinformation 2:<span style="white-space:pre-wrap">   </span>4c0d4d78887f76d971d5d00f1f20a4<wbr>33</div><div style="font-size:12.8px">  Zusatzinformation 3:<span style="white-space:pre-wrap">    </span>4c0d</div><div style="font-size:12.8px">  Zusatzinformation 4:<span style="white-space:pre-wrap">   </span>4c0d4d78887f76d971d5d00f1f20a4<wbr>33</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"> </div><div style="font-size:12.8px">##With Apache</div><div style="font-size:12.8px">qgis_mapserv.fcgi.exe - error:</div><div style="font-size:12.8px">[Tue Jul 25 11:52:46.657559 2017] [fcgid:warn] [pid 6948:tid 1500] (OS 109)Die Pipe wurde beendet.  : [client <a href="http://192.168.20.128:65360/" target="_blank">192.168.20.128:65360</a>] mod_fcgid: get overlap result error</div><div style="font-size:12.8px">[Tue Jul 25 11:52:46.657559 2017] [core:error] [pid 6948:tid 1500] [client <a href="http://192.168.20.128:65360/" target="_blank">192.168.20.128:65360</a>] End of script output before headers: qgis_mapserv.fcgi.exe</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">apache-connfig(windows): (I've tried some variations here, but that's my "normal" setting)</div><div style="font-size:12.8px">FcgidInitialEnv PATH "C:\OSGeo4W\bin;C:\OSGeo4W\<wbr>apps\qgis-dev\bin;C:\OSGeo4W\<wbr>apps\grass\grass-7.2.1\bin;C:\<wbr>OSGeo4W\apps\grass\grass-7.2.<wbr>1\lib;C:\Windows\system32;C:\<wbr>Windows;C:\Windows\System32\<wbr>Wbem"</div><div style="font-size:12.8px">FcgidInitialEnv QGIS_PREFIX_PATH "C:\OSGeo4W\apps\qgis-dev"</div><div style="font-size:12.8px">FcgidInitialEnv QT_PLUGIN_PATH "C:\OSGeo4W\apps\qgis-dev\<wbr>qtplugins;C:\OSGeo4W\apps\Qt5\<wbr>plugins"</div><div style="font-size:12.8px">FcgidInitialEnv TEMP "C:\temp"</div><div style="font-size:12.8px">FcgidInitialEnv PYTHONHOME "C:\OSGeo4W\apps\Python36"</div><div style="font-size:12.8px">FcgidInitialEnv QGIS_SERVER_LOG_FILE "C:\OSGeo4W\qgisserver.txt"</div><div style="font-size:12.8px">FcgidInitialEnv QGIS_SERVER_LOG_LEVEL "0"</div><div style="font-size:12.8px">FcgidInitialEnv PYTHONIOENCODING UTF-8</div><div style="font-size:12.8px">FcgidInitialEnv LC_ALL "en_US.UTF-8"</div><div style="font-size:12.8px">FcgidInitialEnv LANG "en_US.UTF-8"</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><Directory "C:\OSGeo4W/apps/qgis-dev/bin/<wbr>"></div><div style="font-size:12.8px"><span style="white-space:pre-wrap"> </span>AddHandler fcgid-script .exe</div><div style="font-size:12.8px">    Options ExecCGI</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">   </span>AllowOverride all</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">     </span>Require all granted</div><div style="font-size:12.8px"></Directory></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I spent a lot of time already in "playing around" with the configuration-files, but without any result.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Benedikt</div></div>