<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)"><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:Consolas;
        panose-1:2 11 6 9 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;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:"Consolas",serif;}
span.y2iqfc
        {mso-style-name:y2iqfc;}
span.E-MailFormatvorlage24
        {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=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Hi Ben,<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 style='mso-fareast-language:EN-US'>was thought about the rights and the owner of the plugin directory?<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>Regards<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Günter<span style='mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b>Von:</b> Lizmap <lizmap-bounces@lists.osgeo.org> <b>Im Auftrag von </b>Benedetto Figorito via Lizmap<br><b>Gesendet:</b> Freitag, 6. Oktober 2023 13:34<br><b>An:</b> lizmap@lists.osgeo.org<br><b>Betreff:</b> [Lizmap] Qgis Server configuration<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><pre><span class=y2iqfc><span lang=EN>Thanks for the quick response</span></span><o:p></o:p></pre><p class=MsoNormal style='mso-margin-top-alt:auto'><span class=y2iqfc><span lang=EN style='mso-fareast-language:EN-US'>I made the change you proposed, but it didn't solve the problem</span></span><o:p></o:p></p><p><o:p> </o:p></p><p><span class=y2iqfc><span lang=EN style='mso-fareast-language:EN-US'>VirtualHost *:80></span></span><span lang=EN style='mso-fareast-language:EN-US'><br><span class=y2iqfc>ServerAdmin webmaster@localhost</span><br><span class=y2iqfc>ServerName XXXXXX</span><br><span class=y2iqfc>#ServerName qgis.demo</span><br><span class=y2iqfc>DocumentRoot /var/www/html</span><br><span class=y2iqfc># Apache logs (different than QGIS Server log)</span><br><span class=y2iqfc>ErrorLog ${APACHE_LOG_DIR}/qgis.demo.error.log</span><br><span class=y2iqfc>CustomLog ${APACHE_LOG_DIR}/qgis.demo.access.log combined</span><br><span class=y2iqfc># Longer timeout for WPS... default = 40</span><br><span class=y2iqfc>FcgidIOTimeout 120</span><br><span class=y2iqfc>FcgidInitialEnv LC_ALL "en_US.UTF-8"</span><br><span class=y2iqfc>FcgidInitialEnv PYTHONIOENCODING UTF-8</span><br><span class=y2iqfc>FcgidInitialEnv LANG "en_US.UTF-8"</span><br><span class=y2iqfc># QGIS log</span><br><span class=y2iqfc>FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1</span><br><span class=y2iqfc>FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0</span><br><span class=y2iqfc><b><span style='color:red'># Lizmap server abilitazione  </span></b></span><b><span style='color:red'><br><span class=y2iqfc>FcgidInitialEnv QGIS_PLUGINPATH /usr/lib/qgis/plugins/</span><br><span class=y2iqfc>FcgidInitialEnv QGIS_SERVER_LIZMAP_REVEAL_SETTINGS 1</span></span></b><br><span class=y2iqfc># default QGIS project</span><br><span class=y2iqfc>SetEnv QGIS_PROJECT_FILE /home/qgis/projects/world.qgs</span><br><span class=y2iqfc># QGIS_AUTH_DB_DIR_PATH must lead to a directory writeable by the Server's FCGI process user</span><br><span class=y2iqfc>FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH "/home/qgis/qgisserverdb/"</span><br><span class=y2iqfc>FcgidInitialEnv QGIS_AUTH_PASSWORD_FILE "/home/qgis/qgisserverdb/qgis-auth.db"</span><br><span class=y2iqfc># Set pg access via pg_service file</span><br><span class=y2iqfc>SetEnv PGSERVICEFILE /home/qgis/.pg_service.conf</span><br><span class=y2iqfc>FcgidInitialEnv PGPASSFILE "/home/qgis/.pgpass"</span></span><o:p></o:p></p><p><o:p> </o:p></p><pre><span class=y2iqfc><span lang=EN>Could it be some permissions issues?</span></span><o:p></o:p></pre><pre><span class=y2iqfc><span lang=EN>unfortunately I can't attach images ;)</span></span><o:p></o:p></pre><p><o:p> </o:p></p><p><o:p> </o:p></p><p><o:p> </o:p></p><div><p class=MsoNormal>Il 06/10/2023 13:12, <a href="mailto:lizmap-request@lists.osgeo.org">lizmap-request@lists.osgeo.org</a> ha scritto:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre>Send Lizmap mailing list submissions to<o:p></o:p></pre><pre>  <a href="mailto:lizmap@lists.osgeo.org">lizmap@lists.osgeo.org</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>To subscribe or unsubscribe via the World Wide Web, visit<o:p></o:p></pre><pre>   <a href="https://urlsand.esvalabs.com/?u=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Flizmap&e=d1becced&h=f27d6b81&f=y&p=n">https://urlsand.esvalabs.com/?u=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Flizmap&e=d1becced&h=f27d6b81&f=y&p=n</a> <o:p></o:p></pre><pre>or, via email, send a message with subject or body 'help' to<o:p></o:p></pre><pre>  <a href="mailto:lizmap-request@lists.osgeo.org">lizmap-request@lists.osgeo.org</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>You can reach the person managing the list at<o:p></o:p></pre><pre>  <a href="mailto:lizmap-owner@lists.osgeo.org">lizmap-owner@lists.osgeo.org</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>When replying, please edit your Subject line so it is more specific<o:p></o:p></pre><pre>than "Re: Contents of Lizmap digest..."<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>Today's Topics:<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>   1. Qgis Server configuration (Benedetto Figorito)<o:p></o:p></pre><pre>   2. Re: Qgis Server configuration (Rapha?l Martin)<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>----------------------------------------------------------------------<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Message: 1<o:p></o:p></pre><pre>Date: Fri, 6 Oct 2023 12:19:17 +0200<o:p></o:p></pre><pre>From: Benedetto Figorito <a href="mailto:b.figorito@arpa.puglia.it"><b.figorito@arpa.puglia.it></a><o:p></o:p></pre><pre>To: <a href="mailto:lizmap@lists.osgeo.org">lizmap@lists.osgeo.org</a><o:p></o:p></pre><pre>Subject: [Lizmap] Qgis Server configuration<o:p></o:p></pre><pre>Message-ID: <a href="mailto:73527b8c-dc66-41d3-9168-7bc9ab271c3f@arpa.puglia.it"><73527b8c-dc66-41d3-9168-7bc9ab271c3f@arpa.puglia.it></a><o:p></o:p></pre><pre>Content-Type: text/plain; charset="utf-8"; Format="flowed"<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Hi,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I have a problem with the Qgis server configuration.This does not allow <o:p></o:p></pre><pre>projects to be published on lizmap.Also information panel of lizmap <o:p></o:p></pre><pre>plugin for Qgis desktop reports a configuration error.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>The server information panelgive me thiserror ?QGIS Server returns HTTP <o:p></o:p></pre><pre>error for Lizmap plugin: 500?, but in the logs this message appears <o:p></o:p></pre><pre>"/You must correctly install and configure QGIS Server with a version <o:p></o:p></pre><pre>equal to or higher than 3.10 and the Lizmap server plugin with a version <o:p></o:p></pre><pre>equal to or higher to 2.8.1. Unable to reach QGIS Server at the <o:p></o:p></pre><pre>specified URL " <a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2FYYY.YYY.Y.YYY%2Fcgi-bin%2Fqgis_mapserv.fcg%2Fi%3F&e=d1becced&h=786cb620&f=y&p=n">https://urlsand.esvalabs.com/?u=http%3A%2F%2FYYY.YYY.Y.YYY%2Fcgi-bin%2Fqgis_mapserv.fcg%2Fi%3F&e=d1becced&h=786cb620&f=y&p=n</a> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>The lizmap server plugin is correctly installed (/qgis-plugin-manager <o:p></o:p></pre><pre>install 'Lizmap server'/), but perhaps it is not communicating with Qgis <o:p></o:p></pre><pre>server<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>I set empty the Lizmap API URL (I use QGIS Server with FCGI)<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>I don?t know where settting*QGIS_SERVER_LIZMAP_REVEAL_SETTINGS* with the <o:p></o:p></pre><pre>value True on QGIS server. (/etc/apache2/sites-available/qgis.demo conf <o:p></o:p></pre><pre>oretc/apache2/mods-available fcgid.conf)<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I installed:<o:p></o:p></pre><pre> ??? ??? ???? Ubuntu 22.04.3 LTS (jammy)<o:p></o:p></pre><pre> ??? ??? ??? QGIS server 3.28.11<o:p></o:p></pre><pre> ??? ??? ??? Limap server 2.8.1<o:p></o:p></pre><pre> ??? ??? ??? Lizmap web client 3.6.6<o:p></o:p></pre><pre> ??? ??? ??? Apache2? 2.4<o:p></o:p></pre><pre> ??? ??? ??? PHP 8.2<o:p></o:p></pre><pre> ??? ??? ??? python 3.10.12<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I tested the executable? var/log/apache2$ <o:p></o:p></pre><pre>/usr/lib/cgi-bin/qgis_mapserv.fcgi ?version and it gave me this result<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>QGIS 3.28.11-Firenze 'Firenze' (b02458a196)<o:p></o:p></pre><pre>QGIS code revision b02458a196<o:p></o:p></pre><pre>Qt version 5.15.3<o:p></o:p></pre><pre>Python version 3.10.12<o:p></o:p></pre><pre>GDAL/OGR version 3.4.1<o:p></o:p></pre><pre>PROJ version 8.2.1<o:p></o:p></pre><pre>EPSG Registry database version v10.041 (2021-12-03)<o:p></o:p></pre><pre>GEOS version 3.10.2-CAPI-1.16.0<o:p></o:p></pre><pre>SQLite version 3.37.2<o:p></o:p></pre><pre>OS Ubuntu 22.04.3 LTS<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Regards<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Ben<o:p></o:p></pre><pre>-------------- next part --------------<o:p></o:p></pre><pre>An HTML attachment was scrubbed...<o:p></o:p></pre><pre>URL: <a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2Flists.osgeo.org%2Fpipermail%2Flizmap%2Fattachments%2F20231006%2Fcaad18ef%2Fattachment-0001.htm&e=d1becced&h=67636add&f=y&p=n">< https://urlsand.esvalabs.com/?u=http%3A%2F%2Flists.osgeo.org%2Fpipermail%2Flizmap%2Fattachments%2F20231006%2Fcaad18ef%2Fattachment-0001.htm&e=d1becced&h=67636add&f=y&p=n ></a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>------------------------------<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Message: 2<o:p></o:p></pre><pre>Date: Fri, 6 Oct 2023 13:12:54 +0200<o:p></o:p></pre><pre>From: Rapha?l Martin <a href="mailto:rmartin@3liz.com"><rmartin@3liz.com></a><o:p></o:p></pre><pre>To: <a href="mailto:lizmap@lists.osgeo.org">lizmap@lists.osgeo.org</a><o:p></o:p></pre><pre>Subject: Re: [Lizmap] Qgis Server configuration<o:p></o:p></pre><pre>Message-ID: <a href="mailto:fb7aa412-f255-3713-e895-add2b7903aaa@3liz.com"><fb7aa412-f255-3713-e895-add2b7903aaa@3liz.com></a><o:p></o:p></pre><pre>Content-Type: text/plain; charset="utf-8"; Format="flowed"<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Hi , the variable QGIS_SERVER_LIZMAP_REVEAL_SETTINGS? must be set on <o:p></o:p></pre><pre>"qgis server" side<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>so in /etc/apache2/sites-available/qgis.demo<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Le 06/10/2023 ? 12:19, Benedetto Figorito via Lizmap a ?crit?:<o:p></o:p></pre><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre><o:p> </o:p></pre><pre>Hi,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I have a problem with the Qgis server configuration.This does not <o:p></o:p></pre><pre>allow projects to be published on lizmap.Also information panel of <o:p></o:p></pre><pre>lizmap plugin for Qgis desktop reports a configuration error.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>The server information panelgive me thiserror ?QGIS Server returns <o:p></o:p></pre><pre>HTTP error for Lizmap plugin: 500?, but in the logs this message <o:p></o:p></pre><pre>appears "/You must correctly install and configure QGIS Server with a <o:p></o:p></pre><pre>version equal to or higher than 3.10 and the Lizmap server plugin with <o:p></o:p></pre><pre>a version equal to or higher to 2.8.1. Unable to reach QGIS Server at <o:p></o:p></pre><pre>the specified URL " <a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2FYYY.YYY.Y.YYY%2Fcgi-bin%2Fqgis_mapserv.fcg%2Fi%3F&e=d1becced&h=786cb620&f=y&p=n">https://urlsand.esvalabs.com/?u=http%3A%2F%2FYYY.YYY.Y.YYY%2Fcgi-bin%2Fqgis_mapserv.fcg%2Fi%3F&e=d1becced&h=786cb620&f=y&p=n</a> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>The lizmap server plugin is correctly installed (/qgis-plugin-manager <o:p></o:p></pre><pre>install 'Lizmap server'/), but perhaps it is not communicating with <o:p></o:p></pre><pre>Qgis server<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>I set empty the Lizmap API URL (I use QGIS Server with FCGI)<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>I don?t know where settting*QGIS_SERVER_LIZMAP_REVEAL_SETTINGS* with <o:p></o:p></pre><pre>the value True on QGIS server. (/etc/apache2/sites-available/qgis.demo <o:p></o:p></pre><pre>conf oretc/apache2/mods-available fcgid.conf)<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I installed:<o:p></o:p></pre><pre>??? ??? ???? Ubuntu 22.04.3 LTS (jammy)<o:p></o:p></pre><pre>??? ??? ??? QGIS server? 3.28.11<o:p></o:p></pre><pre>??? ??? ??? Limap server 2.8.1<o:p></o:p></pre><pre>??? ??? ??? Lizmap web client 3.6.6<o:p></o:p></pre><pre>??? ??? ??? Apache2? 2.4<o:p></o:p></pre><pre>??? ??? ??? PHP 8.2<o:p></o:p></pre><pre>??? ??? ??? python 3.10.12<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I tested the executable? var/log/apache2$ <o:p></o:p></pre><pre>/usr/lib/cgi-bin/qgis_mapserv.fcgi ?version and it gave me this result<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>QGIS 3.28.11-Firenze 'Firenze' (b02458a196)<o:p></o:p></pre><pre>QGIS code revision b02458a196<o:p></o:p></pre><pre>Qt version 5.15.3<o:p></o:p></pre><pre>Python version 3.10.12<o:p></o:p></pre><pre>GDAL/OGR version 3.4.1<o:p></o:p></pre><pre>PROJ version 8.2.1<o:p></o:p></pre><pre>EPSG Registry database version v10.041 (2021-12-03)<o:p></o:p></pre><pre>GEOS version 3.10.2-CAPI-1.16.0<o:p></o:p></pre><pre>SQLite version 3.37.2<o:p></o:p></pre><pre>OS Ubuntu 22.04.3 LTS<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Regards<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Ben<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Lizmap mailing list<o:p></o:p></pre><pre><a href="mailto:Lizmap@lists.osgeo.org">Lizmap@lists.osgeo.org</a><o:p></o:p></pre><pre> <a href="https://urlsand.esvalabs.com/?u=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Flizmap&e=d1becced&h=f27d6b81&f=y&p=n">https://urlsand.esvalabs.com/?u=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Flizmap&e=d1becced&h=f27d6b81&f=y&p=n</a> <o:p></o:p></pre></blockquote></blockquote><pre>-- <o:p></o:p></pre><pre>dott. ing. Benedetto Figorito<o:p></o:p></pre><pre>Coll. Tecnico Prof.le - Esperto GIS<o:p></o:p></pre><pre>ARPA PUGLIA - Direzione Scientifica - U.O.S. Agenti Fisici<o:p></o:p></pre><pre>C.so Trieste n. 27<o:p></o:p></pre><pre>70126 – Bari<o:p></o:p></pre><pre>Tel.: 080-5460.312 (diretto)<o:p></o:p></pre><pre>E-mail: <a href="mailto:b.figorito@arpa.puglia.it">b.figorito@arpa.puglia.it</a><o:p></o:p></pre><pre>Sito web ARPA: <a href="http://www.arpa.puglia.it">www.arpa.puglia.it</a><o:p></o:p></pre><pre>WebGis: <a href="http://www.webgis.arpa.puglia.it">www.webgis.arpa.puglia.it</a><o:p></o:p></pre></div></body></html>