[Lizmap] Qgis Server configuration
Raphaël Martin
rmartin at 3liz.com
Fri Oct 6 04:49:37 PDT 2023
Can you try with "True" ? :
FcgidInitialEnv QGIS_SERVER_LIZMAP_REVEAL_SETTINGS True
As in
https://docs.lizmap.com/current/en/install/pre_requirements.html#qgis-server-side
Le 06/10/2023 à 13:34, Benedetto Figorito via Lizmap a écrit :
>
> 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 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. 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<b.figorito at arpa.puglia.it>
>> To:lizmap at lists.osgeo.org
>> Subject: [Lizmap] Qgis Server configuration
>> Message-ID:<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&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
>> >
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Fri, 6 Oct 2023 13:12:54 +0200
>> From: Rapha?l Martin<rmartin at 3liz.com>
>> To:lizmap at lists.osgeo.org
>> Subject: Re: [Lizmap] Qgis Server configuration
>> Message-ID:<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&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
>>>
>>>
--
Raphaël Martin
Développeur
www.3liz.com <https://www.3liz.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20231006/d51d2592/attachment-0001.htm>
More information about the Lizmap
mailing list