[Lizmap] Test if QGIS server is running
Philippe CIANFARANI
sig at scot-hautegironde.fr
Thu Jun 6 08:36:38 PDT 2024
Hello everyone,
I want to test if QGIS Server is working. To do this, I'm running
|/usr/lib/cgi-bin/qgis_mapserv.fcgi|, and I'm getting the following
response:
/"Application path not initialized
Application path not initialized
Application path not initialized
Application path not initialized
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
environment variable.
"Loading native module /usr/lib/qgis/server/libdummy.so"
"Loading native module /usr/lib/qgis/server/liblandingpage.so"
"Loading native module /usr/lib/qgis/server/libwcs.so"
"Loading native module /usr/lib/qgis/server/libwfs.so"
"Loading native module /usr/lib/qgis/server/libwfs3.so"
"Loading native module /usr/lib/qgis/server/libwms.so"
"Loading native module /usr/lib/qgis/server/libwmts.so"
<string>:1: DeprecationWarning: setapi() is deprecated
Content-Length: 0
Location: http:/index.json
Server: QGIS FCGI server - QGIS version 3.22.4-Białowieża
Status: 302"/
Is-it normal?
My Apache configuration is as follows:
/<VirtualHost *:80>
ServerAdmin webmaster at localhost
ServerName ...........................
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_FILE /var/log/apache2/qgisserver.log
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 2
FcgidInitialEnv HOME /home/qgis
FcgidInitialEnv QGIS_DEBUG 0
# default QGIS project
SetEnv QGIS_PROJECT_FILE /srv/data/
# Lizmap for QGIS-Server
FcgidInitialEnv QGIS_SERVER_LIZMAP_REVEAL_SETTINGS True
# QGIS Plugin Pfad
FcgidInitialEnv QGIS_PLUGINPATH /var/www/qgis-server/plugins
# 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
# if qgis-server is installed from packages in debian based distros
this is usually /usr/lib/cgi-bin/
# run "locate qgis_mapserv.fcgi" if you don't know where
qgis_mapserv.fcgi is
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews -SymLinksIfOwnerMatch
Require all granted
</Directory>
# Maximum request length and connect timeout for mod_fcgid
<IfModule mod_fcgid.c>
FcgidMaxRequestLen 26214400
FcgidConnectTimeout 60
</IfModule>
</VirtualHost>
/
With Lizmap QGIS Server is not installed properly, or the OGC request
URL provided in the Lizmap configuration is incorrect.
Thank you in advance for your responses!
--
Philippe CIANFARANI
Chef de projet SIG
Syndicat Mixte du SCoT de la Haute Gironde Blaye - Estuaire
Maison des Services au Public
32 rue des Maçons - BP 134
33391 Blaye Cedex
05.57.94.11.87/06.51.10.97.86
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20240606/1f0a4a2c/attachment.htm>
More information about the Lizmap
mailing list