[Lizmap] Qgis Server configuration
info at wagner-it.de
info at wagner-it.de
Fri Oct 6 10:38:33 PDT 2023
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 <mailto:b.figorito at arpa.puglia.it>
Sito web ARPA: www.arpa.puglia.it <http://www.arpa.puglia.it>
WebGis: www.webgis.arpa.puglia.it <http://www.webgis.arpa.puglia.it>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20231006/622241e7/attachment.htm>
More information about the Lizmap
mailing list