<div dir="ltr"><div>Good afternoon,</div><div>First, thank you so much for your replies. </div><div>I'm trying to give additional/updated inputs. </div><div>I confirm to you that i installed the server thanks to a <span style="color:rgb(0,0,0);white-space:pre-wrap">`apt </span><span style="color:rgb(0,0,0);white-space:pre-wrap">install qgis-server` command. </span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Please read the results when i tape this command : </span></div><span style="color:rgb(51,51,51);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;background-color:rgb(216,220,228)"><div><i>root@xxxxxx:/etc/apache2/sites-available# dpkg -s qgis-server<br>Package: qgis-server<br>Status: install ok installed<br>Priority: optional<br>Section: science<br>Installed-Size: 9019<br>Maintainer: Debian GIS Project <<a href="mailto:pkg-grass-devel@lists.alioth.debian.org">pkg-grass-devel@lists.alioth.debian.org</a>><br>Architecture: amd64<br>Source: qgis<br>Version: 3.10.14+dfsg-1<br>Replaces: qgis-mapserver<br>Provides: qgis-mapserver<br>Depends: python3-qgis (= 3.10.14+dfsg-1), qgis-providers (= 3.10.14+dfsg-1), libc6 (>= 2.29), libexiv2-27 (>= 0.27.3), libfcgi0ldbl (>= 2.4.2), libgcc-s1 (>= 3.0), libqgis-core3.10.14 (>= 3.10.2), libqgis-server3.10.14 (>= 3.10.2), libqt5core5a (>= 5.15.1), libqt5gui5 (>= 5.3.0) | libqt5gui5-gles (>= 5.3.0), libqt5webkit5 (>= 5.212.0~alpha3), libqt5widgets5 (>= 5.0.2), libqt5xml5 (>= 5.0.2), libstdc++6 (>= 5.2)<br>Conflicts: qgis-mapserver<br>Description: QGIS server providing various OGC services<br> QGIS is a Geographic Information System (GIS) which manages, analyzes and<br> display databases of geographic information.<br> This package contains the QGIS server.<br>Homepage: <a href="https://qgis.org/">https://qgis.org/</a></i><br></div><div><i><br></i></div><div><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:pre-wrap;background-color:rgb(255,255,255)">Regarding the debian version installed : </span></div><div>lsb_release -a<br>No LSB modules are available.<br>Distributor ID: Debian<br>Description:    Debian GNU/Linux 11 (bullseye)<br>Release:        11<br>Codename:       bullseye<br></div><div><br></div><div><br></div><div><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:pre-wrap;background-color:rgb(255,255,255)">Within the qgis.demo.conf, i took the liberty to change the IP value of the server by the name of the server.</span><span style="color:rgb(51,51,51);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;background-color:rgb(216,220,228)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:pre-wrap;background-color:rgb(255,255,255)">Then : </span></div><div>root@XXXXXX:/etc/apache2/sites-available# a2ensite XXXXXXXX<br>ERROR: Site XXXXXX does not exist!<span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:pre-wrap;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:pre-wrap;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:pre-wrap;background-color:rgb(255,255,255)">Then. After a restart of Apache. I get this error message : </span><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:pre-wrap;background-color:rgb(255,255,255)"><br></span></div></span><font face="verdana, sans-serif" size="1">root@XXXXX:/etc/apache2/sites-available# curl XXXX.fr/cgi-bin/qgis_mapserv.fcgi<br><ServerException>Project file error</ServerException></font><br style="color:rgb(51,51,51);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;background-color:rgb(216,220,228)"><br style="color:rgb(51,51,51);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;background-color:rgb(216,220,228)">Thanks a lot for your help.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC) <<a href="mailto:r.aguilar@utwente.nl">r.aguilar@utwente.nl</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg8726465553390215139">





<div lang="NL" style="overflow-wrap: break-word;">
<div class="m_-3170810203084471847WordSection1">
<p class="MsoNormal"><span>Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">There is a helpful material at:
<a href="https://github.com/elpaso/qgis3-server-vagrant" target="_blank">https://github.com/elpaso/qgis3-server-vagrant</a>,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Also a docker container image at:</span><span lang="EN-US">
</span><span lang="EN-US"><a href="https://github.com/elpaso/qgis-server-docker" target="_blank">https://github.com/elpaso/qgis-server-docker</a>.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Perhaps you could use this material as a starting point.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Hope this helps.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Best,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Rosa<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" align="center" style="text-align:center;background:white"><span lang="EN-US" style="font-size:12pt;font-family:Garamond,serif;color:rgb(51,51,255)">----------------------------------------------------------------</span><span lang="EN-US" style="font-size:12pt;font-family:Garamond,serif;color:rgb(34,34,34)">-</span><span lang="EN-US" style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(34,34,34)"><u></u><u></u></span></p>
<p class="MsoNormal" align="center" style="text-align:center;background:white"><span lang="EN-US" style="font-size:8pt;font-family:"Palatino Linotype",serif;color:rgb(34,34,34)">Dr. Rosa Aguilar</span><span lang="EN-US" style="font-size:8pt;font-family:"Palatino Linotype",serif;color:rgb(34,34,34)"><u></u><u></u></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span lang="EN-US" style="font-size:8pt;font-family:"Palatino Linotype",serif">University of Twente<u></u><u></u></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span lang="EN-GB" style="font-size:8pt;font-family:"Palatino Linotype",serif">Faculty of Geoinformation Science and Earth Observation<u></u><u></u></span></p>
<p class="MsoNormal" align="center" style="text-align:center;background:white"><span lang="EN-GB" style="font-size:8pt;font-family:"Palatino Linotype",serif;color:black">Connect with me on
<a href="https://www.linkedin.com/in/rosamaguilar/?locale=en_US" target="_blank"><span style="color:rgb(5,99,193)">LinkedIn</span></a><u></u><u></u></span></p>
<p class="MsoNormal" align="center" style="text-align:center;background:white"><span lang="EN-GB" style="font-size:8pt;font-family:"Palatino Linotype",serif;color:black"><a href="https://rosaguilar.github.io/" target="_blank"><span style="color:rgb(5,99,193)">https://rosaguilar.github.io</span></a></span><u><span lang="EN-US" style="font-size:8pt;font-family:"Palatino Linotype",serif;color:rgb(0,0,238);background:rgb(246,246,246)"><u></u><u></u></span></u></p>
<p class="MsoNormal" align="center" style="text-align:center;background:white"><span lang="EN-US" style="font-size:8pt;font-family:"Palatino Linotype",serif;color:rgb(51,51,255)">----------------------------------------------------------------</span><span lang="EN-US" style="font-size:8pt;font-family:"Palatino Linotype",serif;color:rgb(34,34,34)">-</span><span lang="EN-US" style="font-size:8pt;font-family:"Palatino Linotype",serif;color:rgb(34,34,34)"><u></u><u></u></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span lang="EN-GB" style="font-size:8pt;font-family:"Palatino Linotype",serif">The essential is invisible to the eye. Saint-Exupéry</span><span lang="EN-GB" style="font-size:8pt;font-family:"Palatino Linotype",serif"><u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> QGIS-User <<a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a>>
<b>On Behalf Of </b>celati Laurent via QGIS-User<br>
<b>Sent:</b> Wednesday, March 15, 2023 4:23 PM<br>
<b>To:</b> qgis-user <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>><br>
<b>Subject:</b> [Qgis-user] Qgis server : install on Linux Debian<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Good afternnon,<u></u><u></u></p>
<div>
<p class="MsoNormal"><br>
I want to install Qgis server on my Linux Debian server virtual .For now, it's not working.<br>
FYI, I already have a working apache server and used for geoserver and geonetwork.<br>
<br>
I followed the Qgis server doc/tutorial:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="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" target="_blank">https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html</a><br>
<a href="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" target="_blank">https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems</a><br>
<br>
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.<br>
<i>[code]root@XXXXXXXXXX:/usr/lib/cgi-bin# /usr/lib/cgi-bin/qgis_mapserv.fcgi --version<br>
Application path not initialized<br>
Application path not initialized<br>
Application path not initialized<br>
QStandardPaths: runtime directory '/run/user/1001' is not owned by UID 0, but a directory permissions 0700 owned by UID 1001 GID 1001<br>
Warning 1: Unable to find ECW driver to unload from GDAL_SKIP environment variable.<br>
Warning 1: Unable to find ECW driver to unload from GDAL_SKIP environment variable.<br>
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.<br>
Initializing server modules from "/usr/lib/qgis/server"<br>
"Checking /usr/lib/qgis/server for native services modules"<br>
"Loading native module /usr/lib/qgis/server/libdummy.so"<br>
"Loading native module /usr/lib/qgis/server/libwcs.so"<br>
"Loading native module /usr/lib/qgis/server/libwfs.so"<br>
"Loading native module /usr/lib/qgis/server/libwfs3.so"<br>
"Loading native module /usr/lib/qgis/server/libwms.so"<br>
"Loading native module /usr/lib/qgis/server/libwmts.so"<br>
<string>:1: DeprecationWarning: setapi() is deprecated<br>
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.<br>
Content Length: 206<br>
Content-Type: text/xml; charset=utf-8<br>
[b]Server: Qgis FCGI server - QGis version 3.10.14-A Coruña<br>
Status: 200<br>
<ServiceExceptionReport xmlns="<a href="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" target="_blank">http://www.opengis.net/ogc</a>"
 version="1.3.0"><br>
<ServiceException code="Service configuration error">Service unknown or unsupported</ServiceException><br>
</ServiceExceptionReport></i><br>
<br>
I installed mod_fcgid successfully.<br>
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
<a href="https://SERVEUR_NAME/qgis_server" target="_blank">https://SERVEUR_NAME/qgis_server</a> URL.<br>
<br>
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? :<br>
<VirtualHost *:80>[<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
<i>I created the directories that will store the QGIS server logs and the authentication database logs:<br>
[code]mkdir -p /var/log/qgis/<br>
chown www-data:www-data /var/log/qgis<br>
mkdir -p /home/qgis/qgisserverdb<br>
chown www-data:www-data /home/qgis/qgisserverdb</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
I enabled fgcid mode and virtual host. But after restarting apache, I got nothing.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i><br>
root@XXXXXXXXXXXXXXXX:/etc# curl <a href="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" target="_blank">
http://XXXXXXX.fr/cgi-bin/qgis_mapserv.fcgi</a><br>
<!PUBLIC HTML DOCTYPE "-//IETF//HTML 2.0 DTD//EN"><br>
<html><head><br>
<title>301 Moved Permanently</title><br>
</head><body><br>
<h1>Moved Permanently</h1><br>
<p>The document has moved <a href="<a href="https://XXXXXXXXXXXcgi-bin/qgis_mapserv.fcgi" target="_blank">https://XXXXXXXXXXXcgi-bin/qgis_mapserv.fcgi</a>">here</a>.</p><br>
<hr><br>
<address>Apache/2.4.54 (Debian) Server at XXXXXXX.fr Port 80</address><br>
</body></html>[/code]</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
Via the browser, when I try <i>XXXXX.fr/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</i><br>
It says Site Unreachable.<br>
<br>
If someone could help me? THANKS.<u></u><u></u></p>
</div>
</div>
</div>
</div>

</div></blockquote></div>