<div dir="ltr">Good afternnon,<div><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:</div><div><a href="https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html">https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html</a><br><a href="https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems">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="http://www.opengis.net/ogc">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>[</div><div><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></div><div><br>I enabled fgcid mode and virtual host. But after restarting apache, I got nothing.</div><div><i><br>root@XXXXXXXXXXXXXXXX:/etc# curl <a href="http://XXXXXXX.fr/cgi-bin/qgis_mapserv.fcgi">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></div><div><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.<br></div></div>