<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=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.E-MailFormatvorlage21
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 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=DE link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Hallo Wolfgang,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>ich denke die Pfade, insbesondere der zu den Server-Plugins, müssen für den QGIS-Server definiert werden. Ich mache das in der Standard .conf (000-default.conf) für den Apache.<o:p></o:p></p><p class=MsoNormal>Hier ein Auszug:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>  FcgidInitialEnv HOME /home/qgis<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>  FcgidInitialEnv QGIS_SERVER_CACHE_DIRECTORY /home/qgis/.cache<o:p></o:p></p><p class=MsoNormal>  FcgidInitialEnv QGIS_SERVER_CACHE_SIZE 500<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>  # QGIS Plugin Pfad<o:p></o:p></p><p class=MsoNormal>  FcgidInitialEnv QGIS_PLUGINPATH /srv/qgis/plugins<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>  # Lizmap für QGIS-Server<o:p></o:p></p><p class=MsoNormal>  FcgidInitialEnv QGIS_SERVER_LIZMAP_REVEAL_SETTINGS True<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>  # fehlerhafte Layer ignorieren (Standard 0 - false)  !!!!<o:p></o:p></p><p class=MsoNormal>  FcgidInitialEnv QGIS_SERVER_IGNORE_BAD_LAYERS 1<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Und bei den Server-Plugins sind die Rechte wichtig (Eigentümer www-data und 755)<o:p></o:p></p><p class=MsoNormal># Rechte und Dateibesitzer neu setzen<o:p></o:p></p><p class=MsoNormal>sudo chmod 755 /srv/qgis/plugins/ -R<o:p></o:p></p><p class=MsoNormal>sudo chown www-data:www-data /srv/qgis/plugins/ -R<o:p></o:p></p><p class=MsoNormal>sudo service apache2 reload<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>xxx:/srv/qgis/plugins$ sudo qgis-plugin-manager list<o:p></o:p></p><p class=MsoNormal>--------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></p><p class=MsoNormal>|  Folder <span style='font-family:"Cambria Math",serif'>⬇</span>                    |  Name                       |  Version  |  Flags         |  QGIS min  |  QGIS max  |  Author  |  Folder rights <o:p></o:p></p><p class=MsoNormal>--------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></p><p class=MsoNormal>|lizmap_server            |Lizmap server           |2.8.3      |Server           |3.10        |3.99        |3Liz      |www-data : 0o755 |   <o:p></o:p></p><p class=MsoNormal>|wfsOutputExtension|wfsOutputExtension|1.8.0      |Server           |3.22        |            |3Liz      |www-data : 0o755 |   <o:p></o:p></p><p class=MsoNormal>--------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Viele Grüße<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Günter<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='mso-fareast-language:DE'>Von:</span></b><span style='mso-fareast-language:DE'> Lizmap-de <lizmap-de-bounces@lists.osgeo.org> <b>Im Auftrag von </b>Wolfgang Meinolf via Lizmap-de<br><b>Gesendet:</b> Montag, 5. Februar 2024 18:20<br><b>An:</b> lizmap-de@lists.osgeo.org<br><b>Betreff:</b> [Lizmap-de] Installationsprobleme<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hallo zusammen,<o:p></o:p></p><p class=MsoNormal>ich versuche seit Anfang letzter Woche, nach gefühlten 2.3 Jahren mal wieder auf einer VM unter UBUNTU einen QGIS Server mit  Lizmap Portal aufzusetzten. GIS Server läuft. Bei usr/lib/cgi-bin/qgis_mapserv.fcgi gibt’s Folgendes:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Application path not initialized<o:p></o:p></p><p class=MsoNormal>Application path not initialized<o:p></o:p></p><p class=MsoNormal>Application path not initialized<o:p></o:p></p><p class=MsoNormal>Application path not initialized<o:p></o:p></p><p class=MsoNormal>Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.<o:p></o:p></p><p class=MsoNormal>Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.<o:p></o:p></p><p class=MsoNormal>Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.<o:p></o:p></p><p class=MsoNormal>"Loading native module /usr/lib/qgis/server/libdummy.so"<o:p></o:p></p><p class=MsoNormal>"Loading native module /usr/lib/qgis/server/liblandingpage.so"<o:p></o:p></p><p class=MsoNormal>"Loading native module /usr/lib/qgis/server/libwcs.so"<o:p></o:p></p><p class=MsoNormal>"Loading native module /usr/lib/qgis/server/libwfs.so"<o:p></o:p></p><p class=MsoNormal>"Loading native module /usr/lib/qgis/server/libwfs3.so"<o:p></o:p></p><p class=MsoNormal>"Loading native module /usr/lib/qgis/server/libwms.so"<o:p></o:p></p><p class=MsoNormal>"Loading native module /usr/lib/qgis/server/libwmts.so"<o:p></o:p></p><p class=MsoNormal>Content-Length: 0<o:p></o:p></p><p class=MsoNormal>Location: http:/index.json<o:p></o:p></p><p class=MsoNormal>Server:  QGIS FCGI server - QGIS version 3.28.15-Firenze<o:p></o:p></p><p class=MsoNormal>Status:  302<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bei <a href="http://xxx.xxx.xxx.xxx/cgi-bin/qgis_mapserv.fcgi?MAP=/home/qgis/projects/world.qgs&LAYERS=countries&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=800&HEIGHT=400&BBOX=-90,-180,90,180">http://xxx.xxx.xxx.xxx/cgi-bin/qgis_mapserv.fcgi?MAP=/home/qgis/projects/world.qgs&LAYERS=countries&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=800&HEIGHT=400&BBOX=-90,-180,90,180</a> wird die Karte angezeigt, bei <a href="http://xxx.xxx.xxx.xxx/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities">http://xxx.xxx.xxx.xxx/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a> die Capabilities.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Ich habe Lizmap 3.7.2 installiert. Bei <a href="http://xxx.xxx.xxx.xxx/lizmap">http://xxx.xxx.xxx.xxx/lizmap</a> erscheint die Login Seite. Nach Einloggen geht’s eigentlich nur zu <a href="http://xxx.xxx.xxx.xxx/lizmap/admin.php/admin/server_information">http://xxx.xxx.xxx.xxx/lizmap/admin.php/admin/server_information</a>, weil noch etwas fehlt. Ich denke, entweder eine Environment Variable oder das Lizmap Server Plugin bei QGIS. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Das hab ich allerdings mit qgis-plugin-manager hier installiert /usr/lib/qgis/plugins das lizmap Server Plugin. qgis-plugin-manager list zeigt Version 2.8.3, die Folder Rights sind: root : 0o755. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Die Eingabe von <a href="http://xxx.xxx.xxx.xxx/lizmap/index.php/view/app/metadata">http://xxx.xxx.xxx.xxx/lizmap/index.php/view/app/metadata</a> zeigt bei qgis_server: test: „ok“ mime_type: „text/xml; charset=utf8“. Dann allerdings gefolgt von http-code 200 und response: offensichtlich mit den QGIS Server Capabilities. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><img border=0 width=597 height=595 style='width:6.2166in;height:6.2in' id="Grafik_x0020_1" src="cid:image001.png@01DA5866.5D436FA0"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Im Lizmap Log steht: Your QGIS server couldn't be reached correctly with the given URL "<a href="http://localhost/cgi-bin/qgis_mapserv.fcgi">http://localhost/cgi-bin/qgis_mapserv.fcgi</a>".<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hab ich möglicherweise das Lizmap Server Plugin im falschen Verzeichnis installiert? Was könnte ich noch prüfen?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Danke für eure guten Tipps im Voraus<o:p></o:p></p><p class=MsoNormal>Gruß Wolfgang<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>