<div class="post-text"><p>Dear all,<br></p><div>I installed QGis-Server 2.14 on Ubuntu 16.04 following the instructions on <a rel="nofollow" href="http://www.paulshapley.com/2016/07/how-to-install-qgis-server-on-ubuntu.html?showComment=1475153231712#c4163641401127840252">this blog</a> [0]. The <code>fgci</code> on its own is responsive and correctly replying to a GetCapabilities request like:<br></div><pre><code><a href="http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities">http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a></code><br></pre><p>However, if I point the browser to a QGis project file, like:<br></p><pre><code><a href="http://localhost/cgi-bin/project/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities">http://localhost/cgi-bin/project/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a></code><br></pre><p>The response is an error:<br></p><pre><code><ServiceExceptionReport version="1.3.0">
  <ServiceException code="WMS configuration error">
    There was an error reading the project file or the SLD configuration
  </ServiceException>
</ServiceExceptionReport>
</code><br></pre><p>Using directly the command line I get a different error message:<br></p><pre><code>$ ./qgis_mapserv.fcgi "QUERY_STRING=SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities"
QFSFileEngine::open: No file name specified
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.
Content-Length: 206
Content-Type: text/xml; charset=utf-8

<ServiceExceptionReport version="1.3.0" xmlns="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>">
 <ServiceException code="Service configuration error">Service unknown or unsupported</ServiceException>
</ServiceExceptionReport>
</code><br></pre><p>The Apache logs are clean. The error log is empty and the access log is reporting nothing unusual.<br></p><p>Are there any other logs I can look into? Any hints on what may be causing this error(s)?<br></p></div><div class="protonmail_signature_block "><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div>Regards,<br></div><div><br></div><div>Luís<br></div><div><br></div><div>[0] <a href="http://www.paulshapley.com/2016/07/how-to-install-qgis-server-on-ubuntu.html?showComment=1475153231712#c4163641401127840252">http://www.paulshapley.com/2016/07/how-to-install-qgis-server-on-ubuntu.html?showComment=1475153231712#c4163641401127840252</a><br></div>