[Lizmap] Qgis Server configuration

Immo Blecher immo at blecher.co.za
Mon Oct 9 03:04:20 PDT 2023


Hi Ben,

Sorry the current suggestions didn't do the trick 🙁

Just one more question: Did you restart the apache2 service after you 
set all the Fcgi settings and plugin installation? I had almost the same 
problems with the new Lizmap, but after /service apache2 restart/ my new 
Lizmap installation worked perfectly. Just asking... 😉

Regards

Immo


On 2023/10/09 11:51, Benedetto Figorito via Lizmap wrote:
>
> I respond to the suggestions you have given me (Lizmap Digest, Vol 50, 
> Issue 5-6-7)
>
> I set FcgidInitialEnv QGIS_SERVER_LIZMAP_REVEAL_SETTINGS True in the 
> /etc/apache2/sites-available/qgis.demo.conf file, but this did not 
> solve the problem
>
> I tried putting everything in FcgidInitialEnv in the mods-available/fcgid.conf
>
> and enabled it, but this did not solve the problem
>
> in /usr/lib/qgis/plugins folder, I checked these permissions 
> “drwxr-xr-x 11 root root 4096 Oct 6 07:28 lizmap “ how should they be set?
>
> For future developments of lizmap, the QGISserver - Lizmap link should 
> be better described. The log messages do not help in solving the 
> problem. Unfortunately I can't try the new versions of lizmap yet and 
> I just have to hope that the new ones have fixed this bug.
>
> At the moment to update the repositories I have to use old versions of 
> the Lizamp plugins
>
> However, I wanted to thank you for the support
>
>
>
>
> Il 06/10/2023 21:00, lizmap-request at lists.osgeo.org ha scritto:
>> Send Lizmap mailing list submissions to
>> 	lizmap at lists.osgeo.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	https://urlsand.esvalabs.com/?u=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Flizmap&e=d1becced&h=f27d6b81&f=y&p=n  
>> or, via email, send a message with subject or body 'help' to
>> 	lizmap-request at lists.osgeo.org
>>
>> You can reach the person managing the list at
>> 	lizmap-owner at lists.osgeo.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Lizmap digest..."
>>
>>
>> Today's Topics:
>>
>>     1. Re: Qgis Server configuration (info at wagner-it.de)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 6 Oct 2023 19:38:33 +0200
>> From:<info at wagner-it.de>
>> To: "'Benedetto Figorito'"<b.figorito at arpa.puglia.it>,
>> 	<lizmap at lists.osgeo.org>
>> Subject: Re: [Lizmap] Qgis Server configuration
>> Message-ID:<00ed01d9f87b$eedf55a0$cc9e00e0$@wagner-it.de>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi Ben,
>>
>>   
>>
>> was thought about the rights and the owner of the plugin directory?
>>
>>   
>>
>> Regards
>>
>>   
>>
>> G?nter
>>
>>   
>>
>> Von: Lizmap<lizmap-bounces at lists.osgeo.org>  Im Auftrag von Benedetto Figorito via Lizmap
>> Gesendet: Freitag, 6. Oktober 2023 13:34
>> An:lizmap at lists.osgeo.org
>> Betreff: [Lizmap] Qgis Server configuration
>>
>>   
>>
>> Thanks for the quick response
>>
>> I made the change you proposed, but it didn't solve the problem
>>
>>   
>>
>> VirtualHost *:80>
>> ServerAdmin webmaster at localhost
>> ServerName XXXXXX
>> #ServerName qgis.demo
>> DocumentRoot /var/www/html
>> # Apache logs (different than QGIS Server log)
>> ErrorLog ${APACHE_LOG_DIR}/qgis.demo.error.log
>> CustomLog ${APACHE_LOG_DIR}/qgis.demo.access.log combined
>> # Longer timeout for WPS... default = 40
>> FcgidIOTimeout 120
>> FcgidInitialEnv LC_ALL "en_US.UTF-8"
>> FcgidInitialEnv PYTHONIOENCODING UTF-8
>> FcgidInitialEnv LANG "en_US.UTF-8"
>> # QGIS log
>> FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>> FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>> # Lizmap server abilitazione
>> FcgidInitialEnv QGIS_PLUGINPATH /usr/lib/qgis/plugins/
>> FcgidInitialEnv QGIS_SERVER_LIZMAP_REVEAL_SETTINGS 1
>> # default QGIS project
>> SetEnv QGIS_PROJECT_FILE /home/qgis/projects/world.qgs
>> # QGIS_AUTH_DB_DIR_PATH must lead to a directory writeable by the Server's FCGI process user
>> FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH "/home/qgis/qgisserverdb/"
>> FcgidInitialEnv QGIS_AUTH_PASSWORD_FILE "/home/qgis/qgisserverdb/qgis-auth.db"
>> # Set pg access via pg_service file
>> SetEnv PGSERVICEFILE /home/qgis/.pg_service.conf
>> FcgidInitialEnv PGPASSFILE "/home/qgis/.pgpass"
>>
>>   
>>
>> Could it be some permissions issues?
>> unfortunately I can't attach images ;)
>>
>>   
>>
>>   
>>
>>   
>>
>> Il 06/10/2023 13:12,lizmap-request at lists.osgeo.org  <mailto:lizmap-request at lists.osgeo.org>   ha scritto:
>>
>> Send Lizmap mailing list submissions to
>>    lizmap at lists.osgeo.org  <mailto:lizmap at lists.osgeo.org>  
>>   
>> To subscribe or unsubscribe via the World Wide Web, visit
>>     https://urlsand.esvalabs.com/?u=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Flizmap  <https://urlsand.esvalabs.com/?u=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Flizmap&e=d1becced&h=f27d6b81&f=y&p=n>  &e=d1becced&h=f27d6b81&f=y&p=n
>> or, via email, send a message with subject or body 'help' to
>>    lizmap-request at lists.osgeo.org  <mailto:lizmap-request at lists.osgeo.org>  
>>   
>> You can reach the person managing the list at
>>    lizmap-owner at lists.osgeo.org  <mailto:lizmap-owner at lists.osgeo.org>  
>>   
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Lizmap digest..."
>>   
>>   
>> Today's Topics:
>>   
>>     1. Qgis Server configuration (Benedetto Figorito)
>>     2. Re: Qgis Server configuration (Rapha?l Martin)
>>   
>>   
>> ----------------------------------------------------------------------
>>   
>> Message: 1
>> Date: Fri, 6 Oct 2023 12:19:17 +0200
>> From: Benedetto Figorito<mailto:b.figorito at arpa.puglia.it>  <b.figorito at arpa.puglia.it>
>> To:lizmap at lists.osgeo.org  <mailto:lizmap at lists.osgeo.org>  
>> Subject: [Lizmap] Qgis Server configuration
>> Message-ID:<mailto:73527b8c-dc66-41d3-9168-7bc9ab271c3f at arpa.puglia.it>  <73527b8c-dc66-41d3-9168-7bc9ab271c3f at arpa.puglia.it>
>> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>>   
>> Hi,
>>   
>> I have a problem with the Qgis server configuration.This does not allow
>> projects to be published on lizmap.Also information panel of lizmap
>> plugin for Qgis desktop reports a configuration error.
>>   
>>   
>> The server information panelgive me thiserror ?QGIS Server returns HTTP
>> error for Lizmap plugin: 500?, but in the logs this message appears
>> "/You must correctly install and configure QGIS Server with a version
>> equal to or higher than 3.10 and the Lizmap server plugin with a version
>> equal to or higher to 2.8.1. Unable to reach QGIS Server at the
>> specified URL "https://urlsand.esvalabs.com/?u=http%3A%2F%2FYYY.YYY.Y.YYY%2Fcgi-bin%2Fqgis_mapserv.fcg%2Fi%3F  <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>  &e=d1becced&h=786cb620&f=y&p=n
>>   
>>   
>> The lizmap server plugin is correctly installed (/qgis-plugin-manager
>> install 'Lizmap server'/), but perhaps it is not communicating with Qgis
>> server
>>   
>>   
>> I set empty the Lizmap API URL (I use QGIS Server with FCGI)
>>   
>>   
>> I don?t know where settting*QGIS_SERVER_LIZMAP_REVEAL_SETTINGS* with the
>> value True on QGIS server. (/etc/apache2/sites-available/qgis.demo conf
>> oretc/apache2/mods-available fcgid.conf)
>>   
>> I installed:
>>   ??? ??? ???? Ubuntu 22.04.3 LTS (jammy)
>>   ??? ??? ??? QGIS server 3.28.11
>>   ??? ??? ??? Limap server 2.8.1
>>   ??? ??? ??? Lizmap web client 3.6.6
>>   ??? ??? ??? Apache2? 2.4
>>   ??? ??? ??? PHP 8.2
>>   ??? ??? ??? python 3.10.12
>>   
>> I tested the executable? var/log/apache2$
>> /usr/lib/cgi-bin/qgis_mapserv.fcgi ?version and it gave me this result
>>   
>> QGIS 3.28.11-Firenze 'Firenze' (b02458a196)
>> QGIS code revision b02458a196
>> Qt version 5.15.3
>> Python version 3.10.12
>> GDAL/OGR version 3.4.1
>> PROJ version 8.2.1
>> EPSG Registry database version v10.041 (2021-12-03)
>> GEOS version 3.10.2-CAPI-1.16.0
>> SQLite version 3.37.2
>> OS Ubuntu 22.04.3 LTS
>>   
>> Regards
>>   
>> Ben
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:<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>
>>   
>> ------------------------------
>>   
>> Message: 2
>> Date: Fri, 6 Oct 2023 13:12:54 +0200
>> From: Rapha?l Martin<mailto:rmartin at 3liz.com>  <rmartin at 3liz.com>
>> To:lizmap at lists.osgeo.org  <mailto:lizmap at lists.osgeo.org>  
>> Subject: Re: [Lizmap] Qgis Server configuration
>> Message-ID:<mailto:fb7aa412-f255-3713-e895-add2b7903aaa at 3liz.com>  <fb7aa412-f255-3713-e895-add2b7903aaa at 3liz.com>
>> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>>   
>> Hi , the variable QGIS_SERVER_LIZMAP_REVEAL_SETTINGS? must be set on
>> "qgis server" side
>>   
>> so in /etc/apache2/sites-available/qgis.demo
>>   
>> Le 06/10/2023 ? 12:19, Benedetto Figorito via Lizmap a ?crit?:
>>
>>   
>> Hi,
>>   
>> I have a problem with the Qgis server configuration.This does not
>> allow projects to be published on lizmap.Also information panel of
>> lizmap plugin for Qgis desktop reports a configuration error.
>>   
>>   
>> The server information panelgive me thiserror ?QGIS Server returns
>> HTTP error for Lizmap plugin: 500?, but in the logs this message
>> appears "/You must correctly install and configure QGIS Server with a
>> version equal to or higher than 3.10 and the Lizmap server plugin with
>> a version equal to or higher to 2.8.1. Unable to reach QGIS Server at
>> the specified URL "https://urlsand.esvalabs.com/?u=http%3A%2F%2FYYY.YYY.Y.YYY%2Fcgi-bin%2Fqgis_mapserv.fcg%2Fi%3F  <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>  &e=d1becced&h=786cb620&f=y&p=n
>>   
>>   
>> The lizmap server plugin is correctly installed (/qgis-plugin-manager
>> install 'Lizmap server'/), but perhaps it is not communicating with
>> Qgis server
>>   
>>   
>> I set empty the Lizmap API URL (I use QGIS Server with FCGI)
>>   
>>   
>> I don?t know where settting*QGIS_SERVER_LIZMAP_REVEAL_SETTINGS* with
>> the value True on QGIS server. (/etc/apache2/sites-available/qgis.demo
>> conf oretc/apache2/mods-available fcgid.conf)
>>   
>> I installed:
>> ??? ??? ???? Ubuntu 22.04.3 LTS (jammy)
>> ??? ??? ??? QGIS server? 3.28.11
>> ??? ??? ??? Limap server 2.8.1
>> ??? ??? ??? Lizmap web client 3.6.6
>> ??? ??? ??? Apache2? 2.4
>> ??? ??? ??? PHP 8.2
>> ??? ??? ??? python 3.10.12
>>   
>> I tested the executable? var/log/apache2$
>> /usr/lib/cgi-bin/qgis_mapserv.fcgi ?version and it gave me this result
>>   
>> QGIS 3.28.11-Firenze 'Firenze' (b02458a196)
>> QGIS code revision b02458a196
>> Qt version 5.15.3
>> Python version 3.10.12
>> GDAL/OGR version 3.4.1
>> PROJ version 8.2.1
>> EPSG Registry database version v10.041 (2021-12-03)
>> GEOS version 3.10.2-CAPI-1.16.0
>> SQLite version 3.37.2
>> OS Ubuntu 22.04.3 LTS
>>   
>> Regards
>>   
>> Ben
>>   
>>   
>> _______________________________________________
>> Lizmap mailing list
>> Lizmap at lists.osgeo.org  <mailto:Lizmap at lists.osgeo.org>  
>>   https://urlsand.esvalabs.com/?u=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Flizmap  <https://urlsand.esvalabs.com/?u=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Flizmap&e=d1becced&h=f27d6b81&f=y&p=n>  &e=d1becced&h=f27d6b81&f=y&p=n
>>
> -- 
> dott. ing. Benedetto Figorito
> Coll. Tecnico Prof.le - Esperto GIS
> ARPA PUGLIA - Direzione Scientifica - U.O.S. Agenti Fisici
> C.so Trieste n. 27
> 70126 – Bari
> Tel.: 080-5460.312 (diretto)
> E-mail:b.figorito at arpa.puglia.it
> Sito web ARPA:www.arpa.puglia.it
> WebGis:www.webgis.arpa.puglia.it
>
> _______________________________________________
> Lizmap mailing list
> Lizmap at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/lizmap
-- 

*Immo F. Blecher**
*/*Mobil(e):*///+491512 639 6176 | +27 83 272 6791
*Tel.:* +49 5508 449 0071
*Email:*_immo at blecher.co.za_ <mailto:immo at blecher.co.za> | 
_immob19 at gmail.com_ <mailto:immob19 at gmail.com>
*Internet:*_https://www.blecher.co.za_ <https://www.blecher.co.za/> | 
_https://aquabase.blecher.co.za_ <https://www.blecher.co.za/>

Please consider your environmental responsibility. Before printing this 
e-mail message, ask yourself whether you really need a hard copy.

*IMPORTANT*: The contents of this email and any attachments are 
confidential. They are intended for the named recipient(s) only. If you 
have received this email by mistake, please notify the sender 
immediately and do not disclose the contents to anyone or make copies 
thereof.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20231009/352ac2f3/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x5886CFEDDBA04323.asc
Type: application/pgp-keys
Size: 2432 bytes
Desc: OpenPGP public key
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20231009/352ac2f3/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20231009/352ac2f3/attachment-0001.sig>


More information about the Lizmap mailing list