Hi,
You are using curl on the command line. You need to protect the url
between quotes.
Can you try again with quotes around the URL?
Regards,
Jorge
On 23/03/23 14:06, celati Laurent via QGIS-User wrote:
Good morning,
Thanks a lot for your message.
I uninstalled everything I had installed up to now (from the Debian
repository) which only offered the qgis server 3.10 version.
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.
This is the current error message I am getting now:
/ curl
http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
<http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities>
[1] 395943
[2] 395944
root@SERVEUR_NAME:/home/qgis/projects# <?xml version="1.0"
encoding="UTF-8"?>
<ServiceExceptionReport xmlns="http://www.opengis.net/ogc"
version="1.3.0">
<ServiceException code="OperationNotSupported">Please add or check
the value of the REQUEST parameter</ServiceException>
</ServiceExceptionReport>
^C
[1]- Done curl
http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS
<http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS>
[2]+ Finished VERSION=1.3.0
/
Do you know what is the request parameter within the URL ?
Someone can help me? Thanks a lot.
Le ven. 17 mars 2023 à 13:08, celati Laurent
<laurent.cel...@gmail.com> a écrit :
Good afternoon,
First, thank you so much for your replies.
I'm trying to give additional/updated inputs.
I confirm to you that i installed the server thanks to a `apt
install qgis-server` command.
Please read the results when i tape this command :
/root@xxxxxx:/etc/apache2/sites-available# dpkg -s qgis-server
Package: qgis-server
Status: install ok installed
Priority: optional
Section: science
Installed-Size: 9019
Maintainer: Debian GIS Project
<pkg-grass-de...@lists.alioth.debian.org>
Architecture: amd64
Source: qgis
Version: 3.10.14+dfsg-1
Replaces: qgis-mapserver
Provides: qgis-mapserver
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)
Conflicts: qgis-mapserver
Description: QGIS server providing various OGC services
QGIS is a Geographic Information System (GIS) which manages,
analyzes and
display databases of geographic information.
This package contains the QGIS server.
Homepage: https://qgis.org//
/
/
Regarding the debian version installed :
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Within the qgis.demo.conf, i took the liberty to change the IP
value of the server by the name of the server.
Then :
root@XXXXXX:/etc/apache2/sites-available# a2ensite XXXXXXXX
ERROR: Site XXXXXX does not exist!
Then. After a restart of Apache. I get this error message :
root@XXXXX:/etc/apache2/sites-available# curl
XXXX.fr/cgi-bin/qgis_mapserv.fcgi
<ServerException>Project file error</ServerException>
Thanks a lot for your help.
Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC)
<r.agui...@utwente.nl> a écrit :
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-boun...@lists.osgeo.org> *On
Behalf Of *celati Laurent via QGIS-User
*Sent:* Wednesday, March 15, 2023 4:23 PM
*To:* qgis-user <qgis-user@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@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
<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@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
<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.
_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user
--
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
_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user