<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>You are using curl on the command line. You need to protect the
url between quotes.</p>
<p>Can you try again with quotes around the URL?</p>
<p>Regards,</p>
<p>Jorge<br>
</p>
<div class="moz-cite-prefix">On 23/03/23 14:06, celati Laurent via
QGIS-User wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHByMH31OEHMEvZArSuzm0vwOBQkdfp9MEhBUy8fmdtzKAAGPQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Good morning,
<div>Thanks a lot for your message. <br>
<br>
I uninstalled everything I had installed up to now (from the
Debian repository) which only offered the qgis server 3.10
version.</div>
<div>I added the official qgis repository which allowed to
install the version of qgis server 3.30. For information, the
qgis project that I am trying to serve is version 3.28 and not
3.30.<br>
This is the current error message I am getting now:<br>
<br>
<i> curl <a
href="http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities"
moz-do-not-send="true">http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a><br>
[1] 395943<br>
[2] 395944<br>
root@SERVEUR_NAME:/home/qgis/projects# <?xml
version="1.0" encoding="UTF-8"?><br>
<ServiceExceptionReport xmlns="<a
href="http://www.opengis.net/ogc" moz-do-not-send="true"
class="moz-txt-link-freetext">http://www.opengis.net/ogc</a>"
version="1.3.0"><br>
<ServiceException
code="OperationNotSupported">Please add or check the
value of the REQUEST parameter</ServiceException><br>
</ServiceExceptionReport><br>
^C<br>
[1]- Done curl <a
href="http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS"
moz-do-not-send="true">http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS</a><br>
[2]+ Finished VERSION=1.3.0<br>
</i><br>
Do you know what is the request parameter within the URL ? <br>
Someone can help me? Thanks a lot.<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le ven. 17 mars 2023 à 13:08,
celati Laurent <<a href="mailto:laurent.celati@gmail.com"
moz-do-not-send="true" class="moz-txt-link-freetext">laurent.celati@gmail.com</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 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"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">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/" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">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)">
</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)">
</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)">
</span></div>
</span><font size="1" face="verdana, sans-serif">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" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">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>
<div lang="NL">
<div>
<p class="MsoNormal"><span>Hi,</span></p>
<p class="MsoNormal"><span> </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" moz-do-not-send="true"
class="moz-txt-link-freetext">https://github.com/elpaso/qgis3-server-vagrant</a>,</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" moz-do-not-send="true"
class="moz-txt-link-freetext">https://github.com/elpaso/qgis-server-docker</a>.</span></p>
<p class="MsoNormal"><span lang="EN-US">Perhaps you
could use this material as a starting point.</span></p>
<p class="MsoNormal"><span lang="EN-US">Hope this
helps.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Best,</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Rosa</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"
style="text-align:center;background:white"
align="center"><span
style="font-size:12pt;font-family:Garamond,serif;color:rgb(51,51,255)"
lang="EN-US">----------------------------------------------------------------</span><span
style="font-size:12pt;font-family:Garamond,serif;color:rgb(34,34,34)"
lang="EN-US">-</span><span
style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(34,34,34)"
lang="EN-US"></span></p>
<p class="MsoNormal"
style="text-align:center;background:white"
align="center"><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif;color:rgb(34,34,34)"
lang="EN-US">Dr. Rosa Aguilar</span><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif;color:rgb(34,34,34)"
lang="EN-US"></span></p>
<p class="MsoNormal" style="text-align:center"
align="center"><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif" lang="EN-US">University of
Twente</span></p>
<p class="MsoNormal" style="text-align:center"
align="center"><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif" lang="EN-GB">Faculty of
Geoinformation Science and Earth Observation</span></p>
<p class="MsoNormal"
style="text-align:center;background:white"
align="center"><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif;color:black" lang="EN-GB">Connect
with me on
<a
href="https://www.linkedin.com/in/rosamaguilar/?locale=en_US"
target="_blank" moz-do-not-send="true"><span
style="color:rgb(5,99,193)">LinkedIn</span></a></span></p>
<p class="MsoNormal"
style="text-align:center;background:white"
align="center"><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif;color:black" lang="EN-GB"><a
href="https://rosaguilar.github.io/"
target="_blank" moz-do-not-send="true"><span
style="color:rgb(5,99,193)">https://rosaguilar.github.io</span></a></span><u><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif;color:rgb(0,0,238);background:rgb(246,246,246)"
lang="EN-US"></span></u></p>
<p class="MsoNormal"
style="text-align:center;background:white"
align="center"><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif;color:rgb(51,51,255)"
lang="EN-US">----------------------------------------------------------------</span><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif;color:rgb(34,34,34)"
lang="EN-US">-</span><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif;color:rgb(34,34,34)"
lang="EN-US"></span></p>
<p class="MsoNormal" style="text-align:center"
align="center"><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif" lang="EN-GB">The essential
is invisible to the eye. Saint-Exupéry</span><span
style="font-size:8pt;font-family:"Palatino
Linotype",serif" lang="EN-GB"></span></p>
<p class="MsoNormal"><span> </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" moz-do-not-send="true"
class="moz-txt-link-freetext">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" moz-do-not-send="true"
class="moz-txt-link-freetext">qgis-user@lists.osgeo.org</a>><br>
<b>Subject:</b> [Qgis-user] Qgis server :
install on Linux Debian</span></p>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Good afternnon,</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:</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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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>[</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></p>
</div>
<div>
<p class="MsoNormal"><br>
I enabled fgcid mode and virtual host. But
after restarting apache, I got nothing.</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" moz-do-not-send="true">
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"
moz-do-not-send="true">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></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.</p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-User mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-User@lists.osgeo.org">QGIS-User@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Jorge Gustavo Rocha
Geomaster, LDA
"Take the open source journey with us"
VAT/NIF: PT 510 906 109
Phone: +351 253 257 173 (landline)
Mobile: +351 910 333 888 (cellular)
Rua Afonso Palmeira, 31, 7 D
4715-278 Braga
PORTUGAL
GPS 41.54627, -8.40432
</pre>
</body>
</html>