Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site. Si vous continuez à utiliser ce dernier, nous considèrerons que vous acceptez l'utilisation des cookies. J'ai compris ! ou En savoir plus !.
banniere

Le portail francophone de la géomatique


Toujours pas inscrit ? Mot de passe oublié ?
Nom d'utilisateur    Mot de passe              Toujours pas inscrit ?   Mot de passe oublié ?

Annonce

Suite à un problème technique intervenu entre le 22 et le 23 mars, nous avons du procéder dans la soirée du 25 mars, à la restauration de la base de données du 24 mars (matinée).

En clair, nous avons perdu vos contributions et inscriptions du dimanche 24 et du lundi 25 mars.
Nous vous prions de nous excuser.

#31 Wed 01 February 2023 23:09

PauloLrx
Participant occasionnel
Date d'inscription: 11 Feb 2021
Messages: 22

Re: Tutoriel d'installatioin de Lizmap sur Linux

La commande donne:
apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese>
     Active: active (running) since Fri 2023-01-27 17:29:45 UTC; 5 days ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 401390 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/>
    Process: 478949 ExecReload=/usr/sbin/apachectl graceful (code=exited, statu>
   Main PID: 401395 (apache2)
      Tasks: 37 (limit: 2196)
     Memory: 51.7M
        CPU: 54.196s
     CGroup: /system.slice/apache2.service
             ├─401395 /usr/sbin/apache2 -k start
             ├─478960 /usr/sbin/apache2 -k start
             ├─478963 /usr/sbin/apache2 -k start
             ├─478964 /usr/sbin/apache2 -k start
             ├─478966 /usr/sbin/apache2 -k start
             ├─478967 /usr/sbin/apache2 -k start
             ├─478968 /usr/sbin/apache2 -k start
             ├─478969 /usr/sbin/apache2 -k start
             ├─479029 /usr/sbin/apache2 -k start
             └─479034 /usr/sbin/apache2 -k start

janv. 29 00:00:00 localhost systemd[1]: Reloaded The Apache HTTP Server.
lines 1-23

et

<VirtualHost *:80>
    # The ServerName directive sets the request scheme, hostname and port that
    # the server uses to identify itself. This is used when creating
    # redirection URLs. In the context of virtual hosts, the ServerName
    # specifies what hostname must appear in the request's Host: header to
    # match this virtual host. For the default virtual host (this file) this
    # value is not decisive as it is used as a last resort host regardless.
    # However, you must set it for any further virtual host explicitly.
    #ServerName www.example.com

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    <Directory  /var/www/html/>
                Options -Indexes +FollowSymLinks +MultiViews
                AllowOverride none
                Require all granted
        </Directory>

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf
 
      ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
      <Directory "/usr/lib/cgi-bin/">
        AllowOverride None
        Options +ExecCGI -MultiViews -SymLinksIfOwnerMatch
          Require all granted
      </Directory>

      # 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

      # Longer timeout for WPS... default = 40
 
    FcgidIOTimeout 120
      FcgidInitialEnv LC_ALL "en_US.UTF-8"
      FcgidInitialEnv PYTHONIOENCODING UTF-8
      # FcgidInitialEnv PYTHONPATH "/usr/share/qgis/python"
     
      FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
      FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
    FcgidInitialEnv QGIS_PLUGINPATH "/var/www/qgis-server/plugins"
 
      <IfModule mod_fcgid.c>
        FcgidMaxRequestLen 26214400
        FcgidConnectTimeout 60
      </IfModule>


</VirtualHost>

Hors ligne

 

#32 Wed 01 February 2023 23:33

JLH
Participant actif
Date d'inscription: 7 Dec 2019
Messages: 68

Re: Tutoriel d'installatioin de Lizmap sur Linux

Merci.

Le serveur fonctionne smile !

Mais je pense que le problème vient de votre fichier mentionné plus haut.

Tenter de le vider et de le remplacer par :
<VirtualHost *:80>
  ServerAdmin webmaster@localhost
  ServerName localhost

  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

  # 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"

  # 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>

  <IfModule mod_fcgid.c>
  FcgidMaxRequestLen 26214400
  FcgidConnectTimeout 60
  </IfModule>

</VirtualHost>


(vérifier si votre installation est bien dans /var/www/html pour le paramètre document root)

Dernière modification par Jean HUMBERT (Wed 01 February 2023 23:34)

Hors ligne

 

#33 Fri 03 February 2023 20:28

PauloLrx
Participant occasionnel
Date d'inscription: 11 Feb 2021
Messages: 22

Re: Tutoriel d'installatioin de Lizmap sur Linux

Bonsoir Jean,

Merci pour ces éléments de réponses. Etant novice en linux je ne comprends pas:
(vérifier si votre installation est bien dans /var/www/html pour le paramètre document root)
quelle instalation s'il vous plait?

Paul-Emmanuel

Hors ligne

 

#34 Sun 12 February 2023 19:32

PauloLrx
Participant occasionnel
Date d'inscription: 11 Feb 2021
Messages: 22

Re: Tutoriel d'installatioin de Lizmap sur Linux

Bonsoir Jean,

Dans /var/www/html j'ai un dossier lizmap qui est en fait un lien symbolique pointant vers
/var/www/lizmap-web-client-3.6.0/lizmap/www

Bonne soirée,

Paul-Emmanuel

Hors ligne

 

#35 Mon 13 February 2023 09:40

JLH
Participant actif
Date d'inscription: 7 Dec 2019
Messages: 68

Re: Tutoriel d'installatioin de Lizmap sur Linux

D'accord, le dossier est au bon endroit.
Avez-vous modifié votre fichier de configuration apache?

Hors ligne

 

#36 Mon 13 February 2023 12:16

PauloLrx
Participant occasionnel
Date d'inscription: 11 Feb 2021
Messages: 22

Re: Tutoriel d'installatioin de Lizmap sur Linux

Bonjour Jean,

Oui absolument.

Bien cordialement,

Paul-Emmanuel

Hors ligne

 

#37 Tue 14 February 2023 08:58

JLH
Participant actif
Date d'inscription: 7 Dec 2019
Messages: 68

Re: Tutoriel d'installatioin de Lizmap sur Linux

Bonjour,

Et vous avez toujours le même problème ou cela fonctionne-t-il désormais?

Hors ligne

 

#38 Tue 14 February 2023 09:33

PauloLrx
Participant occasionnel
Date d'inscription: 11 Feb 2021
Messages: 22

Re: Tutoriel d'installatioin de Lizmap sur Linux

Cela ne fonctionne toujours pas malheureusement

Hors ligne

 

#39 Tue 14 February 2023 11:18

JLH
Participant actif
Date d'inscription: 7 Dec 2019
Messages: 68

Re: Tutoriel d'installatioin de Lizmap sur Linux

le message d'erreur est-il le même?

Hors ligne

 

#40 Tue 14 February 2023 17:04

nworr
Participant actif
Date d'inscription: 10 Apr 2014
Messages: 74

Re: Tutoriel d'installatioin de Lizmap sur Linux

L'installeur de lizmap a été lancé ?

Code:

php lizmap/install/installer.php

Hors ligne

 

#41 Thu 16 February 2023 18:13

PauloLrx
Participant occasionnel
Date d'inscription: 11 Feb 2021
Messages: 22

Re: Tutoriel d'installatioin de Lizmap sur Linux

J'ai refais la commende et j'ai ce message d'erreur
root@localhost:~# php /var/www/lizmap-web-client-3.6.0/lizmap/install/installer.php
PHP Fatal error:  Uncaught Error: Class "DOMDocument" not found in /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/core/UrlMapping/XmlMapModifier.php:45
Stack trace:
#0 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/installer/Installer/GlobalSetup.php(202): Jelix\Routing\UrlMapping\XmlMapModifier->__construct()
#1 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/installer/Installer/Installer.php(110): Jelix\Installer\GlobalSetup->__construct()
#2 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/Scripts/InstallerCommand.php(48): Jelix\Installer\Installer->__construct()
#3 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/symfony/console/Command/Command.php(298): Jelix\Scripts\InstallerCommand->execute()
#4 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#5 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#6 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#7 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/Scripts/Installer.php(30): Symfony\Component\Console\Application->run()
#8 /var/www/lizmap-web-client-3.6.0/lizmap/install/installer.php(2): Jelix\Scripts\Installer::launch()
#9 {main}
  thrown in /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/core/UrlMapping/XmlMapModifier.php on line 45
root@localhost:~# php /var/www/lizmap-web-client-3.6.0/lizmap/install/installer.php
PHP Fatal error:  Uncaught Error: Class "DOMDocument" not found in /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/core/UrlMapping/XmlMapModifier.php:45
Stack trace:
#0 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/installer/Installer/GlobalSetup.php(202): Jelix\Routing\UrlMapping\XmlMapModifier->__con                        struct()
#1 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/installer/Installer/Installer.php(110): Jelix\Installer\GlobalSetup->__construct()
#2 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/Scripts/InstallerCommand.php(48): Jelix\Installer\Installer->__construct()
#3 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/symfony/console/Command/Command.php(298): Jelix\Scripts\InstallerCommand->execute()
#4 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#5 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#6 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#7 /var/www/lizmap-web-client-3.6.0/lizmap/vendor/jelix/jelix/lib/jelix/Scripts/Installer.php(30): Symfony\Component\Console\Application->run()
#8 /var/www/lizmap-web-client-3.6.0/lizmap/install/installer.php(2): Jelix\Scrip

Dernière modification par PauloLrx (Thu 16 February 2023 18:17)

Hors ligne

 

#42 Thu 16 February 2023 18:33

nworr
Participant actif
Date d'inscription: 10 Apr 2014
Messages: 74

Re: Tutoriel d'installatioin de Lizmap sur Linux

Il doit manque les extensions php décrites

https://docs.lizmap.com/current/fr/inst … y-packages

php-xml notamment pour le message  "DOMDocument" not found

Selon la version php installée (7.4, 8.1, autre)

Code:

apt install php7.4-bz2 php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-pgsql php7.4-sqlite3 php7.4-xml php7.4-ldap php7.4-redis

ou

Code:

apt install php8.1-bz2 php8.1-curl php8.1-gd php8.1-intl php8.1-json php8.1-mbstring php8.1-pgsql php8.1-xml ...

Hors ligne

 

#43 Fri 17 February 2023 09:41

PauloLrx
Participant occasionnel
Date d'inscription: 11 Feb 2021
Messages: 22

Re: Tutoriel d'installatioin de Lizmap sur Linux

En fait, avant d'installer lizmap j'avais installé tous ces fichier php et j'ai la version 8.1, je ne sais pas dans quel dossier linux les stocke...
Ces fichiers doivent-ils être dans un des sous-dossiers de Lizmap?

Hors ligne

 

#44 Fri 17 February 2023 11:08

nworr
Participant actif
Date d'inscription: 10 Apr 2014
Messages: 74

Re: Tutoriel d'installatioin de Lizmap sur Linux

les paquets php8.1-XXX sont installé sur le systeme , donc disponible pour les commandes php.
La commande suivante devraient indiquer le modules "xml" disponibles

php -m | grep xml

Hors ligne

 

#45 Fri 10 March 2023 15:40

PauloLrx
Participant occasionnel
Date d'inscription: 11 Feb 2021
Messages: 22

Re: Tutoriel d'installatioin de Lizmap sur Linux

Bonjour,
J'ai réinstallé tout les extension php-xxx et j'ai toujours le message. Website is closed.

Hors ligne

 

#46 Mon 13 March 2023 14:54

nworr
Participant actif
Date d'inscription: 10 Apr 2014
Messages: 74

Re: Tutoriel d'installatioin de Lizmap sur Linux

Toujours le même message de l'installeur  ?

Code:

php lizmap/install/installer.php

Hors ligne

 

#47 Fri 24 March 2023 15:56

PauloLrx
Participant occasionnel
Date d'inscription: 11 Feb 2021
Messages: 22

Re: Tutoriel d'installatioin de Lizmap sur Linux

C'est cela une fois cette commande tapé tout fonctionne. Merci à vous

Hors ligne

 

#48 Tue 11 April 2023 12:21

Oliv38
Participant actif
Date d'inscription: 21 Dec 2011
Messages: 132

Re: Tutoriel d'installatioin de Lizmap sur Linux

Bonjour,
je me greffe à ces échanges car je galère aussi avec mon installation avec des erreurs similaires. J'avais déjà installé du Lizmap qui ne nécessitait pas de plugin lizmap_server et qui fonctionnait. Cette fois dans les logs de l'administration lizmap j'ai ces messages :

Code:

2023-04-11 10:19:33    [2]    Undefined array key "metadata"    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    63

2023-04-11 10:19:33    [2]    Trying to access array offset on value of type null    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    63

2023-04-11 10:19:33    [2]    Undefined array key "plugins"    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    54

2023-04-11 10:19:33    [2]    Trying to access array offset on value of type null    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    54

2023-04-11 10:19:33    [2]    Trying to access array offset on value of type null    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    54

2023-04-11 10:19:33    [2]    Undefined array key "qgis_server_version_human_readable"    /var/www/lizmap-web-client-3.6.2/temp/lizmap/www/compiled/templates/modules/admin/project_list_zone_html_t_15.php    279

2023-04-11 10:19:33    [2]    Undefined array key "qgis_server_version_old"    /var/www/lizmap-web-client-3.6.2/temp/lizmap/www/compiled/templates/modules/admin/project_list_zone_html_t_15.php    287

2023-04-11 10:19:33    [2]    Undefined array key "qgis_server_version_next"    /var/www/lizmap-web-client-3.6.2/temp/lizmap/www/compiled/templates/modules/admin/project_list_zone_html_t_15.php    288

2023-04-11 10:19:35    [2]    Undefined array key "metadata"    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    63

2023-04-11 10:19:35    [2]    Trying to access array offset on value of type null    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    63

2023-04-11 10:19:41    [2]    Undefined array key "metadata"    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    63

2023-04-11 10:19:41    [2]    Trying to access array offset on value of type null    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    63

2023-04-11 10:20:35    [2]    Undefined array key "metadata"    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    63

2023-04-11 10:20:35    [2]    Trying to access array offset on value of type null    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    63

2023-04-11 10:20:35    193.56.80.200    error    QGIS Serveur doit être mise à jour au moins avec la version 3.10pour cette version de Lizmap Web Client.
2023-04-11 10:20:35    [2]    Undefined array key "plugins"    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    54

2023-04-11 10:20:35    [2]    Trying to access array offset on value of type null    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    54

2023-04-11 10:20:35    [2]    Trying to access array offset on value of type null    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php    54

2023-04-11 10:20:35    193.56.80.200    error    L'extension lizmap_serverdoit être mise à jour.

Pour info le plugin lizmap_server est bien installé et qgis Server est en version 3.22. J'ai pourtant 2 messages d'erreur relatifs...

La version Lizmap client est la 3.6.2 avec du PHP 8.1 normalement tout à fait compatible (pas d'erreur à ce sujet a priori).

Vous auriez une idée du souci ou du moins m'indiquer une méthode pour identifier la source du problème ?

Je vous remercie par avance.
Oliv

Hors ligne

 

#49 Thu 13 April 2023 09:06

Oliv38
Participant actif
Date d'inscription: 21 Dec 2011
Messages: 132

Re: Tutoriel d'installatioin de Lizmap sur Linux

Je répond sur ma demande pour préciser que pour l'installation du plugin lizmap_server (qui semble indispensable) j'ai donc suivi la procédure de la documentation:

Code:

sudo pip3 install qgis-plugin-manager
cd /usr/lib/qgis/plugins
sudo qgis-plugin-manager init
sudo cat sources.list 
https://plugins.qgis.org/plugins/plugins.xml?qgis=3.19
sudo qgis-plugin-manager update
sudo qgis-plugin-manager install 'Lizmap server'

Etant donné que j'ai installé qgis server 3.22, faut-il forcément modifier le paramètre "qgis=3.19" en 3.22 ou faut-il prendre une autre version (la dernière ?).

Enfin 2 autres points,
- il semblerait que certaines variables d'environnement soient obligatoires pour le bon fonctionnement, sauf que je n'arrive pas vraiment à savoir lesquels et surtout où faut-il les inscrire (dans mon fichier vhost de qgis-server ?)
- le log error d'apache m'indique l'api Lizmap is not enabled. Comment je la rend "enabled" ?

Une dernière solution serait de régresser ma version de LizmapWeb CLient en 3.5 pour laquelle le plugin lizmap_server n'était pas obligatoire me seble-t-il.

D'avance merci.
Oliv

Hors ligne

 

#50 Thu 13 April 2023 10:05

nworr
Participant actif
Date d'inscription: 10 Apr 2014
Messages: 74

Re: Tutoriel d'installatioin de Lizmap sur Linux

Que dit la page "informations serveur" de l'administration ?

une fois le plugin "lizmap server" installé il faut aussi configurer la variable d'environnement QGIS_SERVER_LIZMAP_REVEAL_SETTINGS dans apache pour que le plugin soit interrogeable

cf https://github.com/3liz/lizmap-web-client/issues/3367

Pour la version indiqué dans le chemin du pluginx.xml j'ai l'impression que ça ne change rien

Hors ligne

 

#51 Thu 13 April 2023 10:48

Oliv38
Participant actif
Date d'inscription: 21 Dec 2011
Messages: 132

Re: Tutoriel d'installatioin de Lizmap sur Linux

Merci pour ta  réponse !

La page "informations serveur" me dit ça en bas : QGIS Serveur retourne une erreur HTTP à propos de l'extension Lizmap : 400

Concernant la variable d'environnement que tu cites, en effet je l'avais identifié et j'ai inscrit ceci dans mon fichier vhost ssl :

Code:

<IfModule mod_ssl.c>
<VirtualHost *:443>
  ServerAdmin webmaster@localhost
  ServerName 

  DocumentRoot /var/www/html

<Directory  /var/www/html/>
                Options -Indexes +FollowSymLinks +MultiViews
                AllowOverride none
                Require all granted
        </Directory>


  # Apache logs (different than QGIS Server log)
  ErrorLog ${APACHE_LOG_DIR}/qgis-server.error.log
  CustomLog ${APACHE_LOG_DIR}/qgis-server.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

  # 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"

  # Plugins
  FcgidInitialEnv QGIS_PLUGINPATH "/usr/lib/qgis/plugins/"

  FcgidInitialEnv QGIS_SERVER_LIZMAP_REVEAL_SETTINGS=True

  # 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
    Order allow,deny
    Allow from all
    Require all granted
  </Directory>

 <IfModule mod_fcgid.c>
 FcgidMaxRequestLen 26214400
 FcgidConnectTimeout 60
 </IfModule>


SSLCertificateFile /etc/letsencrypt/live/         /fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/         /privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

Est-ce qu'il y a des trucs choquant là dedans ?
Merci encore

Hors ligne

 

#52 Thu 13 April 2023 11:11

Oliv38
Participant actif
Date d'inscription: 21 Dec 2011
Messages: 132

Re: Tutoriel d'installatioin de Lizmap sur Linux

Mais oui, la révélation !
Merci pour ton aide, je n'utilisais pas la bonne syntaxe de déclaration pour cette variable d'environnement. Il faut donc mettre :

- FcgidInitialEnv QGIS_SERVER_LIZMAP_REVEAL_SETTINGS True

ou

- FcgidInitialEnv QGIS_SERVER_LIZMAP_REVEAL_SETTINGS "1"

Et tout rentre dans l'ordre, je peux enfin afficher ma carte.

Merci beaucoup.

Hors ligne

 

#53 Thu 13 April 2023 11:27

nworr
Participant actif
Date d'inscription: 10 Apr 2014
Messages: 74

Re: Tutoriel d'installatioin de Lizmap sur Linux

Oui la doc en confusante, des correction sont en cours.

Dernière modification par nworr (Thu 13 April 2023 11:50)

Hors ligne

 

#54 Thu 13 April 2023 11:50

Oliv38
Participant actif
Date d'inscription: 21 Dec 2011
Messages: 132

Re: Tutoriel d'installatioin de Lizmap sur Linux

Ca me renvoie ça :

Code:

--------------------------------------------------------------------------------------------------------------
|  Folder ⬇   |  Name       |  Version  |  Flags  |  QGIS min  |  QGIS max  |  Author  |  Folder rights  |  Action ⚠  |
--------------------------------------------------------------------------------------------------------------
|lizmap_server|Lizmap server|2.7.0      |Server   |3.10        |3.99        |3Liz      |www-data : 0o755 |   |
--------------------------------------------------------------------------------------------------------------

Pour l'interrogation .json j'ai une erreur NOT FOUND The requested URL was not found on this server.

Hors ligne

 

#55 Thu 13 April 2023 13:57

nworr
Participant actif
Date d'inscription: 10 Apr 2014
Messages: 74

Re: Tutoriel d'installatioin de Lizmap sur Linux

Entre temps j'ai édité mon message, désolé

Dernière modification par nworr (Thu 13 April 2023 13:58)

Hors ligne

 

#56 Tue 13 June 2023 13:32

Oliv38
Participant actif
Date d'inscription: 21 Dec 2011
Messages: 132

Re: Tutoriel d'installatioin de Lizmap sur Linux

Bonjour,
je réouvre ce post car pour une nouvelle install Lizmap j'ai quelques soucis à peu près pour les mêmes raisons que précédemment.

J'ai installé Qgis_server 3.28, ça tourne bien.
J'ai installé Lizmap Web Client, l page web d'administration s'ouvre parfaitement.
J'ai installé manuellement (sans passé par qgis-plugin manager car j'y arrivais pas) le plugin 'lizmap server' en version 2.7.2 en le dézippant dans le dossier "/usr/lib/qgis/plugins/"

Code:

root@server:/usr/lib/qgis/plugins# qgis-plugin-manager list
QGIS version : 3.28.7
List all plugins in the current working directory : /usr/lib/qgis/plugins

The 'update' command has not been done before. The repository https://plugins.qgis.org/plugins/plugins.xml?qgis=3.28 has not been fetched before.
-------------------------------------------------------------------------------------------------------------------------
|  Folder ⬇   |  Name       |  Version  |  Flags  |  QGIS min  |  QGIS max  |  Author  |  Folder rights  |  Action ⚠             |
-------------------------------------------------------------------------------------------------------------------------
|lizmap_server|Lizmap server|2.7.2      |Server   |3.10        |3.99        |3Liz      |www-data : 0o755 |Remote unknown|
-------------------------------------------------------------------------------------------------------------------------

J'ai aussi pris soin de déclarer la variable d'environnement QGIS_SERVER_LIZMAP_REVEAL_SETTINGS True dans mon VHOST


Et pourtant, j'ai une erreur :

dans la page d'amdinistration Lizmap : QGIS Serveur retourne une erreur HTTP à propos de l'extension Lizmap : Unknown
dans les fichiers logs lizmap : 2023-06-13 13:14:50    10.38.4.103    error    QGIS serveur minimum 3.10 et l'extension Lizmap QGIS Serveur 2.7.1 doivent être installés et configurés correctement. Votre serveur QGIS n'est pas joignable correctement en utilisant l'URL "http://ip_server/cgi-bin/qgis_mapserv.fcgi".

Auriez-vous une piste de résolution à me suggérer ? Serait-ce la version 2.7.2 qui coince avec qgis server 3.28 ?
D'avance merci si vous avez une idée.

Hors ligne

 

#57 Tue 13 June 2023 13:47

Oliv38
Participant actif
Date d'inscription: 21 Dec 2011
Messages: 132

Re: Tutoriel d'installatioin de Lizmap sur Linux

Je vous confirme que le changement de version vers 2.7.1 ne change rien

Hors ligne

 

#58 Tue 13 June 2023 16:11

nworr
Participant actif
Date d'inscription: 10 Apr 2014
Messages: 74

Re: Tutoriel d'installatioin de Lizmap sur Linux

Dans le navigateur ou en lige de commande (curl) le serveur Qgis renvoie quelque chose ?

http://<ip_server>/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json

Hors ligne

 

#59 Tue 13 June 2023 16:27

Oliv38
Participant actif
Date d'inscription: 21 Dec 2011
Messages: 132

Re: Tutoriel d'installatioin de Lizmap sur Linux

Bonjour,
merci à toi.
Cela renvoie ceci :

Code:

<ServiceExceptionReport version="1.3.0">
<ServiceException code="Service configuration error">
Service unknown or unsupported. Current supported services (case-sensitive): WMS WFS WCS WMTS SampleService, or use a WFS3 (OGC API Features) endpoint
</ServiceException>
</ServiceExceptionReport>

Hors ligne

 

#60 Tue 13 June 2023 17:18

Oliv38
Participant actif
Date d'inscription: 21 Dec 2011
Messages: 132

Re: Tutoriel d'installatioin de Lizmap sur Linux

Sur la page "information serveur" de l'administration Lizmap il est noté :

Nous ne pouvons avoir les détails sur l'installation de votre serveur QGIS (version, extensions etc.).

Se peut-il qu'il y ai des problèmes de droits quelque part ? Si oui où ?

Apache est propriétaire de la plupart des dossiers plugin, lizmap, répertoire projets, vhost.

Lors de l'installation de 'Lizmap server' j'ai eu une alerte comme quoi j'avais fait l'installation avec root.

Merci encore pour l'aide.

Dernière modification par Oliv38 (Tue 13 June 2023 17:18)

Hors ligne

 

Pied de page des forums

Powered by FluxBB