[Qgis-user] Fresh install of QGIS Server doesn't work as expected

B. De Mezzo benoit.de.mezzo at oslandia.com
Tue May 2 04:58:17 PDT 2023


Hi,

can you check if qgis_mapserv.fcgi is in /usr/lib/cgi-bin/?

Regards.

Le 27/04/2023 à 23:14, Jeremy Garniaux via QGIS-User a écrit :
> Hi,
>
> I'm trying to deploy QGIS Server on a Debian 11 VPS.
> Following the doc (1)(2), I installed QGIS 3.30. Then I tested the 
> install with
>
> > /usr/lib/cgi-bin/qgis_mapserv.fcgi
>
> Here's the output:
>
> > $ /usr/lib/cgi-bin/qgis_mapserv.fcgi
> > Application path not initialized
> > Application path not initialized
> > Application path not initialized
> > Application path not initialized
> > 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.
> > "Loading native module /usr/lib/qgis/server/libdummy.so"
> > "Loading native module /usr/lib/qgis/server/liblandingpage.so"
> > "Loading native module /usr/lib/qgis/server/libwcs.so"
> > "Loading native module /usr/lib/qgis/server/libwfs.so"
> > "Loading native module /usr/lib/qgis/server/libwfs3.so"
> > "Loading native module /usr/lib/qgis/server/libwms.so"
> > "Loading native module /usr/lib/qgis/server/libwmts.so"
> > Content-Length: 0
> > Location: http:/index.json
> > Server:  QGIS FCGI server - QGIS version 3.30.1-'s-Hertogenbosch
> > Status:  302
>
> It's not what I expected after reading the doc but I kept going 
> anyway, uploaded my custom QGIS project to the server, set up Apache 
> and scrupulously followed the doc. Then I checked the availability of 
> QGIS Server with
>
> > 
> http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
>
> ...but got a 404 error.
>
> Any suggestion on what I'm doing wrong?
>
> Thanks for your help.
>
> Best regards,
>
> Jeremy
>
>
> (1) https://docs.qgis.org/3.28/en/docs/server_manual/getting_started.html
> (2) https://qgis.org/en/site/forusers/alldownloads.html
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230502/22074989/attachment.sig>


More information about the QGIS-User mailing list