[Qgis-user] Qgis server : install on Linux Debian

Aguilar Bolivar, Rosa (UT-ITC) r.aguilar at utwente.nl
Wed Mar 15 12:28:35 PDT 2023


Hi,

There is a helpful material at: https://github.com/elpaso/qgis3-server-vagrant,
Also a docker container image at: https://github.com/elpaso/qgis-server-docker.
Perhaps you could use this material as a starting point.
Hope this helps.

Best,

Rosa

-----------------------------------------------------------------
Dr. Rosa Aguilar
University of Twente
Faculty of Geoinformation Science and Earth Observation
Connect with me on LinkedIn<https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
https://rosaguilar.github.io<https://rosaguilar.github.io/>
-----------------------------------------------------------------
The essential is invisible to the eye. Saint-Exupéry

From: QGIS-User <qgis-user-bounces at lists.osgeo.org> On Behalf Of celati Laurent via QGIS-User
Sent: Wednesday, March 15, 2023 4:23 PM
To: qgis-user <qgis-user at lists.osgeo.org>
Subject: [Qgis-user] Qgis server : install on Linux Debian

Good afternnon,

I want to install Qgis server on my Linux Debian server virtual .For now, it's not working.
FYI, I already have a working apache server and used for geoserver and geonetwork.

I followed the Qgis server doc/tutorial:
https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Ftraining_manual%2Fqgis_server%2Finstall.html&data=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298340593%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rRTqcYX4IWpYNx2APq5UzngB5idQy5WccQsLsEzR8Ys%3D&reserved=0>
https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Fserver_manual%2Fgetting_started.html%23installation-on-debian-based-systems&data=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298360503%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jh35omGXX%2FoArpmE234Xr%2BxuHzVDflxKav8EVzWpHXA%3D&reserved=0>

FYI, when I test the executable, here is the message.The version seems to be qgis 3.10 (and not 3.22). And the status message is 200 and not 400.
[code]root at XXXXXXXXXX:/usr/lib/cgi-bin# /usr/lib/cgi-bin/qgis_mapserv.fcgi --version
Application path not initialized
Application path not initialized
Application path not initialized
QStandardPaths: runtime directory '/run/user/1001' is not owned by UID 0, but a directory permissions 0700 owned by UID 1001 GID 1001
Warning 1: Unable to find ECW driver to unload from GDAL_SKIP environment variable.
Warning 1: Unable to find ECW driver to unload from GDAL_SKIP environment variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.
Initializing server modules from "/usr/lib/qgis/server"
"Checking /usr/lib/qgis/server for native services modules"
"Loading native module /usr/lib/qgis/server/libdummy.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"
<string>:1: DeprecationWarning: setapi() is deprecated
Logged warning: Loading a file that was saved with an older version of qgis (saved in 0.0.0, loaded in 3.10.14-A Coruña). Problems may occur.
Content Length: 206
Content-Type: text/xml; charset=utf-8
[b]Server: Qgis FCGI server - QGis version 3.10.14-A Coruña
Status: 200
<ServiceExceptionReport xmlns="http://www.opengis.net/ogc<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opengis.net%2Fogc&data=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298370457%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=quyHw82PqJGv79OxOfI2MD360x9T0B7%2FP%2Bn2teJ%2FNUk%3D&reserved=0>" version="1.3.0">
<ServiceException code="Service configuration error">Service unknown or unsupported</ServiceException>
</ServiceExceptionReport>

I installed mod_fcgid successfully.
As I already Apache installed. What should I do ? I would like to be able to coexist geoserver, geonetwork and qgis server. I would like to be able to add for qgis server a https://SERVEUR_NAME/qgis_server URL.

I created a qgis.demo.conf file under etc/apache2/sites-available. I only replaced ServerName with my server's IP. I haven't changed anything else. Given my needs and working environment, should I modify the first line of the file? :
<VirtualHost *:80>[

I created the directories that will store the QGIS server logs and the authentication database logs:
[code]mkdir -p /var/log/qgis/
chown www-data:www-data /var/log/qgis
mkdir -p /home/qgis/qgisserverdb
chown www-data:www-data /home/qgis/qgisserverdb

I enabled fgcid mode and virtual host. But after restarting apache, I got nothing.

root at XXXXXXXXXXXXXXXX:/etc# curl http://XXXXXXX.fr/cgi-bin/qgis_mapserv.fcgi<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fxxxxxxx.fr%2Fcgi-bin%2Fqgis_mapserv.fcgi&data=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298370457%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=LHyQONg9y4pr4%2F9qcdDO%2B%2FyvGrse7pstLR13cy%2F8EDc%3D&reserved=0>
<!PUBLIC HTML DOCTYPE "-//IETF//HTML 2.0 DTD//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://XXXXXXXXXXXcgi-bin/qgis_mapserv.fcgi">here</a>.</p>
<hr>
<address>Apache/2.4.54 (Debian) Server at XXXXXXX.fr Port 80</address>
</body></html>[/code]

Via the browser, when I try XXXXX.fr/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
It says Site Unreachable.

If someone could help me? THANKS.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230315/f23abd9f/attachment.htm>


More information about the QGIS-User mailing list