<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Palatino Linotype";
panose-1:2 4 5 2 5 5 5 3 3 4;}
@font-face
{font-family:Garamond;
panose-1:2 2 4 4 3 3 1 1 8 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">There is a helpful material at:
<a href="https://github.com/elpaso/qgis3-server-vagrant">https://github.com/elpaso/qgis3-server-vagrant</a>,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Also a docker container image at:</span><span lang="EN-US">
</span><span lang="EN-US" style="mso-fareast-language:EN-US"><a href="https://github.com/elpaso/qgis-server-docker">https://github.com/elpaso/qgis-server-docker</a>.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Perhaps you could use this material as a starting point.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Hope this helps.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Rosa<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center;background:white"><span lang="EN-US" style="font-size:12.0pt;font-family:"Garamond",serif;color:#3333FF;mso-fareast-language:EN-GB">----------------------------------------------------------------</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Garamond",serif;color:#222222;mso-fareast-language:EN-GB">-</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center;background:white"><span lang="EN-US" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;color:#222222;mso-fareast-language:EN-GB">Dr. Rosa Aguilar</span><span lang="EN-US" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;color:#222222;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span lang="EN-US" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-GB">University of Twente<o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span lang="EN-GB" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-GB">Faculty of Geoinformation Science and Earth Observation<o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center;background:white"><span lang="EN-GB" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;color:black;mso-fareast-language:EN-GB">Connect with me on
<a href="https://www.linkedin.com/in/rosamaguilar/?locale=en_US"><span style="color:#0563C1">LinkedIn</span></a><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center;background:white"><span lang="EN-GB" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;color:black;mso-fareast-language:EN-GB"><a href="https://rosaguilar.github.io/"><span style="color:#0563C1">https://rosaguilar.github.io</span></a></span><u><span lang="EN-US" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;color:#0000EE;background:#F6F6F6;mso-fareast-language:EN-GB"><o:p></o:p></span></u></p>
<p class="MsoNormal" align="center" style="text-align:center;background:white"><span lang="EN-US" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;color:#3333FF;mso-fareast-language:EN-GB">----------------------------------------------------------------</span><span lang="EN-US" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;color:#222222;mso-fareast-language:EN-GB">-</span><span lang="EN-US" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;color:#222222;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span lang="EN-GB" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-GB">The essential is invisible to the eye. Saint-Exupéry</span><span lang="EN-GB" style="font-size:8.0pt;font-family:"Palatino Linotype",serif;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> QGIS-User <qgis-user-bounces@lists.osgeo.org>
<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 <qgis-user@lists.osgeo.org><br>
<b>Subject:</b> [Qgis-user] Qgis server : install on Linux Debian<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Good afternnon,<o:p></o:p></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:<o:p></o:p></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">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">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">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">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>[<o:p></o:p></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><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
I enabled fgcid mode and virtual host. But after restarting apache, I got nothing.<o:p></o:p></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">
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">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><o:p></o:p></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.<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>