Installation de Lizmap sous Windows

La documentation montre la progression de l’installation de Lizmap Web Client dans un environnement Windows 10. Les autres versions de Windows ne devraient pas poser de problème.

Note

Dans la documentation la version 3.0 de Lizmap Web Client est utilisée. Soyez certain de l’adapter en fonction de la version que vous voulez installer (la dernière est recommandée).

Configuration du serveur Apache 2.x.x

Nous allons d’abord créer un dossier proche de C:\. Par exemple, C:\webserver\. Après cela, nous allons télécharger Apache 64 bits, compilé avec VC11, par exemple : http://www.apachelounge.com/download/VC11/binaries/httpd-2.4.20-win64-VC11.zip.

Note

Vous pouvez utiliser d’autres versions http://www.apachelounge.com/download/VC11/

Extraire le fichier zip dans le répertoire C:\webserver\ et changez le nom de httpd-2.4.20-win64-VC11 à Apache24. Ensuite, il faut ouvrir le fichier de configuration d’Apache C:\webserver\Apache24\conf\httpd.conf et le modifier avec un éditeur de texte (par exemple Notepad++ ou Notepad) pour remplacer tous les C:/Apache24 en C:/webserver/Apache24.

Après cette modification, cherchez avec Ctrl+F la variable ServerName et ajoutez à la suite les mots suivants ServerName localhost. Si vous continuez dans ce fichier, vous allez trouver « DirectoryIndex index.html » qui est à remplacer par DirectoryIndex index.html index.php et sauvegarder le fichier.

Pour voir si Apache peut démarrer, ouvrir l’invite de commande avec Windows+R et taper cmd, ensuite écrire dans le shell C:\webserver\Apache24\bin\httpd.exe et ne fermer pas la fenêtre cmd.

Avertissement

Il est important d’effectuer un CLIQUE DROIT et « Exécuter en tant qu’administrateur » pour avoir accès à toutes les fonctions. Il faut le faire à chaque fois que l’on souhaite utiliser le Shell

Après avoir écrit l’instruction, appuyez sur Entrée. Vous allez recevoir une notification du parefeu Windows, il faut alors Autoriser l’accès pour tous. Ouvrez le navigateur et taper http://localhost et appuyez sur Entrée, cela devrait ouvrir une page avec le « It Works ».

Avertissement

Si vous n’avez pas d’alerte du parfeux Windows, cela signifie sûrement que vous avez un anti-viruse qui le gère. Dans ce cas, vous devez modifier la configuration pour ajouter le service apache de façon manuelle. Autre astuce, si le parfeux Windows n’indique pas la boite de dialogue précédente, vous devez ajouter manuellement le port 80 en entrée et sortie dans les propriétés avancées du parfeux windows (panneau de configuration > outils d’administration > Parfeux windows avec sécurité avancée

Open the cmd where you run the previous command and press Ctrl+C to stop Apache. Then add the Apache to your Windows System Path allowing to you call the apache directly in the cmd. So for this task, you hold the Windows and press Pause. Then, click in Advanced System Settings and then in Environment Variables. The next step is to append (not replace!) ;C:\webserver\Apache24\bin to the Path variable (double-click in « Path » line). After this step, close cmd , reopen cmd and check Apache is correctly declare in the System path. In cmd type httpd then hit enter this will run Apache, if Yes you can stop pressing Ctrl+C.

Il est maintenant temps d’ajouter Apache comme service. Pour cela, vous devez ouvrir un terminal et taper httpd -k install. Cela va démarrer Apache comme un service Windows.

Après avoir configuré Apache comme service, vous aurez besoin du module mod_fgci qui se trouve dans http://www.apachelounge.com/download/VC11/modules/modules-2.4-win64-VC11.zip .

Note

Vous pouvez utiliser une autre installation http://www.apachelounge.com/download/VC11/

The link above include several apache modules, unzip the file mod_fcgid-2.3.9mod_fcgidmod_fcgid.so into the directory C:\webserver\Apache24\modules\. After this you need to change the Apache configuration in C:\webserver\Apache24\conf\httpd.conf and enable the modules that you need. Search for LoadModule command lines and the line LoadModule fcgid_module modules/mod_fcgid.so. In the added LoadModule line please uncheck ( remove #) the following modules: mod_actions.so, mod_ssl.so, mod_rewrite.so, mod_headers.so, mod_deflate.so, mod_expires.so, mod_ext_filter.so, mod_ident.so. This action will activate them.

Note

Si vous devez utiliser un port différent, il est nécessaire d’activer d’autres modules associés au proxy : ** proxy **, ** proxy_http **, ** proxy-connect **, ** proxy-fcgin cache **, ** disk -cache **, ** en-têtes **

Vous devez configurer la compression des fichiers, vous devez donc ajouter les lignes suivantes à la fin de la httpd configuration file:

<IfModule mod_deflate.c>
  SetOutputFilter DEFLATE
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\\.0[678] no-gzip
  BrowserMatch \\bMSIE !no-gzip !gzip-only-text/html
  SetEnvIfNoCase Request_URI \\.(?:gif|jpe?g|png|rar|zip)$ no-gzip dont-vary
  Header append Vary User-Agent env=!dont-vary
</IfModule>

Note

Si un autre port doit être utilisé, par ex. ** 1664 **, ajoutez l’option ** Listen ** au fichier Apache ** httpd.conf **: Listen 80 Listen 1664

Après cela, redémarrez Apache, utilisez la ligne de commande et tapez: kbd: httpd -k restart.

Configuration php 5.x.xx

Avertissement

Lizmap Web Client s’appuie sur Jelix 1.6. Vous devez installer au minimum la version 5.4 de PHP. Les extensions dom, simplexml, pcre, session, tokenizer et spl sont requises (elles sont actives en général dans une installation standard de PHP 5.4).

Allez sur http://windows.php.net/download/ et téléchargez php-5.6.23-Win32-VC11-x64.zip, assurez-vous qu’il s’agit du fichier non thread-safe, par exemple: http://windows .php.net/téléchargements/releases/php-5.6.23-Win32-VC11-x64.zip

After download unzip in C:\webserver\php-5.6.23 and go to the file C:\webserver\php-5.6.23\php.ini-production and change into C:\webserver\php-5.6.23\php.ini. Open the php.ini and search for extension dir directive and change to the properly locate of EXT folder, make sure that you enter the full path like this extension_dir = « C:\webserver\php-5.6.23\ext ». Now is time to activate the php modules, for this task you need to uncommeting the following lines:

extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
extension=php_sqlite3.dll

Then you need to change the upload values from deafult value to 15M and will stay like upload_max_filesize = 15M. Do the same for post_max_size and change from default value to 15M like this post_max_size = 15M. After this changes save the file. Add the PHP to your Windows System Path allowing to you call the apache directly in the cmd. So for this task, you hold the Windows and press Pause. Then, click in Advanced System Settings and then in Environment Variables. The next step is to append (not replace!) ;C:\webserver\php-5.6.23 to the Path variable (double-click in « Path » line). After this step, close cmd , reopen cmd and check PHP is correctly declare in the System path. In cmd type php -m You will check now the Apache configuration with httpd -S

Après ces étapes et vous devez créer un fichier de configuration pour l’utilisation de PHP, vous devez donc créer un fichier dans ** C:/webserver/Apache24/conf/extra/ ** avec le nom de: kbd: php-5.6 .23.conf. Cela peut être fait si vous ouvrez un éditeur de texte et que vous l’enregistrez avec le code suivant:

FcgidInitialEnv PHPRC "C:\\webserver\\php-5.6.23"
 <FilesMatch \\.php$>
  AddHandler fcgid-script .php
  FcgidWrapper "C:/webserver/php-5.6.23/php-cgi.exe" .php
 </FilesMatch>

Note

Assurez-vous que vous avez l’extension: kbd: .conf dans ce fichier.

Allez sur: kbd: http.conf et décommentez la ligne Include conf/extra/httpd-vhosts.conf. Cela vous permettra d’ajouter de nouveaux hôtes virtuels dans le fichier ** C:/webserver/Apache24/conf/extra/httpd-vhosts.conf**. Après cette modification, enregistrez le fichier. Vous devez créer le nouvel hôte virtuel, donc ouvrez le fichier ** C:/webserver/Apache24/conf/extra/httpd-vhosts.conf** et commentez ou supprimez les deux exemples à l’intérieur (approximativement entre les lignes 23 et 38). Si vous ajoutez le commentaire dans les exemples par défaut, copiez et collez ces configurations après les configurations par défaut:

<VirtualHost *:80>
  Include conf/extra/php-5.6.23.conf
  ServerName localhost
  DocumentRoot "C:/webserver/lizmap/"

  <Directory "C:/webserver/lizmap">
      Options -Indexes +FollowSymLinks +ExecCGI
      AllowOverride All
      Require all granted
  </Directory>

  CustomLog "logs/lizmap-access.log" common
  ErrorLog "logs/lizmap-error.log"
</VirtualHost>

Après cette étape, enregistrez le fichier. Créez un dossier avec le nom lizmap dans C:/webserver et dans le C:/webserver/lizmap, ajoutez un fichier avec l’extension PHP et enregistrez avec ce code à l’intérieur du fichier:

php <?php phpinfo(); ?>

Redémarrez Apache en ligne de commande avec: kbd: httpd -k restart et voyez si tout va bien. Si OUI, ouvrez le navigateur et tapez http://localhost/index.php et apparaîtra la page des propriétés PHP, nous supposons que vous installez correctement le PHP.

Note

concernant les extensions PHP du driver PostgreSQL vous devez les avoir installées.

Installation de QGIS Server

Rendez vous à http://www.qgis.org et téléchargez le fichier Osgeo4W Network installer (64 bit) (par ex. http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe) et exécutez l’installateur. Choisissez les options suivantes:

  1. Installation avancée ;

  2. Installation depuis internet ;

  3. Root Directory C:\OSGeo4W64 et install for all users;

  4. Conserver les valeurs par défaut de Local Package Directory et Start Menu Name

  5. Ne configurez pas le proxy si ce n’est pas nécessaire

  6. Choose a download site : click on http://download.osgeo.org the « Next »

  7. Sélectionné les paquets : Commandline_Utilities/gdal, Desktop/Qgis full , Web/Qgis server, lib/fcgi ensuite Next (À des fins de stabilité nous utilisons la version QGIS LTR)

  8. Accept to get packages to meet dependencies : Next then Wait for the download to be completed and Agree to all licenses

Note

Ce processus peut être long (~ 1 heure).

Après l’installation, nous devons configurer QGIS Server pour qu’il soit accessible en tant que fcgi, vous devez donc modifier le fichier dans le répertoire C:/webserver/Apache24/conf/extra/httpd-vhosts.conf pour avoir ce contenu :

<VirtualHost *:80>
Include conf/extra/php-5.6.23.conf
ServerName localhost

# Lizmap Production
DocumentRoot "C:/webserver/lizmap/prod/"
<Directory "C:/webserver/lizmap/prod">
    Options -Indexes +FollowSymLinks +ExecCGI
    AllowOverride All
    Require all granted
</Directory>

# LizMap Pré-production
Alias /preprod/ "C:/webserver/lizmap/preprod/"
<Directory "C:/webserver/lizmap/preprod">
    Options -Indexes +FollowSymLinks +ExecCGI
    AllowOverride All
    Require all granted
</Directory>

Alias /qgis/ "C:/OSGeo4W64/apps/qgis-ltr/bin/"
<Directory "C:/OSGeo4W64/apps/qgis-ltr/bin/">
    SetHandler fcgid-script
    Options +ExecCGI
    AllowOverride All
    Require all granted
</Directory>

CustomLog "logs/lizmap-access.log" common
ErrorLog "logs/lizmap-error.log"
</VirtualHost>

Après cette modification, allez dans le fichier C:\webserver\Apache24\conf\extra\php5.6.23.conf et modifiez-le également pour avoir la configuration suivante :

FcgidInitialEnv PHPRC "C:\\webserver\\php-5.6.23"

FcgidInitialEnv PATH "C:\OSGeo4W64\bin;C:\OSGeo4W64\apps\qgis-ltr\bin;C:\OSGeo4W64\apps\grass\grass-6.4.3\lib;C:\OSGeo4W64\apps\grass\grass-6.4.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\WBem"
 FcgidInitialEnv QT_PLUGIN_PATH "C:\OSGeo4W64\apps\qgis-ltr\qtplugins;C:\OSGeo4W64\apps\Qt4\plugins"
 FcgidInitialEnv PYTHONHOME "C:\OSGeo4W64\apps\Python27"
 FcgidInitialEnv PYTHONPATH "C:\OSGeo4W64\apps\qgis-ltr\.\python;C:\OSGeo4W64\apps\qgis-ltr\.\python\plugins;C:\OSGeo4W64\apps\Python27\DLLs;C:\OSGeo4W64\apps\Python27\lib;C:\OSGeo4W64\bin;C:\OSGeo4W64\apps\Python27;C:\OSGeo4W64\apps\Python27\lib\site-packages"

FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
FcgidInitialEnv QGIS_SERVER_LOG_FILE "C:\\webserver\\Apache24\\logs\\qgis_server.log"

FcgidIOTimeout 120
      FcgidInitialEnv LC_ALL "en_US.UTF-8"
      FcgidInitialEnv PYTHONIOENCODING UTF-8
      FcgidInitialEnv LANG "en_US.UTF-8"
      FcgidInitialEnv QGIS_DEBUG 1
      FcgidInitialEnv QGIS_SERVER_LOG_FILE "C:\\webserver\Apache24\logs\\qgis_server.log"
      FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
      FcgidInitialEnv QGIS_PLUGINPATH "C:\OSGeo4W64\apps\qgis-ltr\python\plugins"

SetEnvIf Request_URI ^/qgis QGIS_PREFIX_PATH "C:\OSGeo4W64\apps\qgis-ltr"
SetEnvIf Request_URI ^/qgis TEMP "C:\Windows\Temp"

SetEnvIf Request_URI ^/qgis GDAL_DATA "C:\OSGeo4W64\share\gdal"
SetEnvIf Request_URI ^/qgis GDAL_DRIVER_PATH "C:\OSGeo4W64\bin"
SetEnvIf Request_URI ^/qgis PDAL_DRIVER_PATH "C:\OSGeo4W64\bin"
SetEnvIf Request_URI ^/qgis GDAL_SKIP "JP2ECW"
SetEnvIf Request_URI ^/qgis PROJ_LIB "C:\OSGeo4W64\share\proj"

 <FilesMatch \.php$>
  AddHandler fcgid-script .php
  FcgidWrapper "C:/webserver/php-5.6.23/php-cgi.exe" .php
 </FilesMatch>

Après les changements, redémarrez Apache, tapez en ligne de commande l’instruction :

httpd -k restart

Maintenant, il est temps de tester Qgis Server et de voir s’il est accessible en fcgi, pour cela, vous devez taper dans le navigateur le lien : http://localhost/qgis/qgis_mapserv.fcgi.exe et si tout est correct vous recevrez la réponse suivante :

<ServiceExceptionReport version="1.3.0">
  ServiceException code="OperationNotSupported">Please check the value of the REQUEST parameter</ServiceException>
</ServiceExceptionReport>

Préparation du dossier d’accueil de Lizmap Web Client

Vous allez maintenant installer 2 environnements, un pour la production et l’autre pour la pré-production, pour cette action vous devez créer dans les répertoires suivants : C:\webserver\lizmap\prod\ et C:\webserver\lizmap\preprod\

Go to 3Liz Github repository https://github.com/3liz/lizmap-web-client/tags and get the last version in ZIP format. For example, you can use 3.0 ( https://codeload.github.com/3liz/lizmap-web-client/zip/release_3_0.zip) or for master version (https://github.com/3liz/lizmap-web-client/archive/master.zip).

Chaque environnement aura plusieurs versions en parallèle. Par exemple: master et release_3_0. Pour cela, vous devez décompresser dans C:\webserver\lizmap pour avoir à la fin un dossier (exemple donné pour l’environnement de production et de la version maître) C:\webserver\lizmap\prod\master\. Créez ensuite un répertoire où vous placerez le cache de tuiles pour la prod C:/webserver/cache/prod et pour la preprod C:/webserver/cache/preprod

After create the cache folders, modify the virtual host to point to the www folder of lizmap web client application. Got to the file C:/webserver/Apache24/conf/extra/httpd-vhosts.conf and replace for the example: C:/webserver/lizmap by C:/webserver/lizmap/prod/master/lizmap/www .

# example configuration in httpd-vhosts.conf
<VirtualHost *:80>
Include conf/extra/php5.6.23.conf
ServerName localhost

# Lizmap Production
# Version master
DocumentRoot "C:/webserver/lizmap/prod/master/lizmap/www/"
<Directory "C:/webserver/lizmap/prod/master/lizmap/www/">
    Options -Indexes +FollowSymLinks +ExecCGI
    AllowOverride All
    Require all granted
</Directory>

# LizMap Pré-production
# Version master used
Alias /preprod/ "C:/webserver/lizmap/preprod/master/lizmap/www/"
<Directory "C:/webserver/lizmap/preprod/master/lizmap/www/">
    Options -Indexes +FollowSymLinks +ExecCGI
    AllowOverride All
    Require all granted
</Directory>

Alias /qgis/ "C:/OSGeo4W64/apps/qgis-ltr/bin/"
<Directory "C:/OSGeo4W64/apps/qgis-ltr/bin/">
    SetHandler fcgid-script
    Options +ExecCGI
    AllowOverride All
    Require all granted
</Directory>

# ABP: needed for authentication in Lizmap
<IfModule mod_fcgid.c>
    RewriteEngine on
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

CustomLog "logs/lizmap-access.log" common
ErrorLog "logs/lizmap-error.log"
</VirtualHost>

After the replacement save the file and restart Apache with the command-line instruction:

httpd -k restart

In case of lizmap version >= 3.0, you must use some scripts to install it properly (see https://github.com/3liz/lizmap-web-client/blob/master/INSTALL.md ). Open the command-line (cmd.exe) and write the next instructions:

cd C:\webserver\lizmap\prod\master\
cd lizmap\var\config
copy lizmapConfig.ini.php.dist lizmapConfig.ini.php
copy localconfig.ini.php.dist localconfig.ini.php
copy profiles.ini.php.dist profiles.ini.php
cd ..\..\..

Au cas où vous voudriez activer le répertoire des démos, ajoutez juste dans localconfig.ini.php :

[modules]
lizmap.installparam=demo

Ensuite vous pouvez lancer l’installateur en ligne de commande (cmd):

cd C:\webserver\lizmap\prod\master\
php lizmap\install\installer.php

Utilisation de PostgreSQL en tant que base de données d’administration (Optionnel)

Note

Pré-requis : installation de PostgreSQL/PostGIS

By default, when you install LizMap Web Client, you will install a sqlite database where will be store the information about users, permissions among other information.

Imagine that you are GIS Manager and you want to link the user and password credentials of lizmap to the PostgreSQL users and password credentials.

For that before the installation you need to change the file profiles.ini.php in the folder C:\webserver\lizmap\lizmap-web-client-master\lizmap\var\config with the following lines:

default=jauth
jacl2_profile=jauth

Add ; to deactivate the sqlite database.

;[jdb:jauth]
;driver=sqlite3
;database="var:db/jauth.db"

;[jdb:lizlog]
;driver=sqlite3
;database="var:db/logs.db"
; when you have charset issues, enable force_encoding so the connection will be
; made with the charset indicated in jelix config
;force_encoding = on

; with the following parameter, you can specify a table prefix which will be
; applied to DAOs automatically. For manual jDb requests, please use method
; jDbConnection::prefixTable().
;table_prefix =

Remove ; and fill with PostgreSQL credentials:

;Example of different driver (e.g PostgreSQL)
[jdb:jauth]
driver="pgsql"
database="name_of_database"
host="localhost"
user="Admin_user_postgreSQL"
password="put_here_the_password"

[jdb:lizlog]
driver="pgsql"
database="name_of_database"
host="localhost"
user="Admin_user_postgreSQL"
password="put_here_the_password"


; Example for pdo (eg. MySQL):
;driver=pdo
;dsn=mysql:host=your_host;dbname=name_of_database
;user=
;password=

Configuration du panneau d’administration Lizmap

After the correct installation with the installer, go to http://localhost/index.php and you sould see the Lizmap application home page with the demo project Montpellier - Transport. Now it’s time to configure the LizMap Admin Panel, go to http://localhost/admin.php and do the login with user=admin and password=admin. Then for security proposes change the admin password, for example: lizmap_12345. If you want so, you can delete the users lizadmin and logintranet. You can do the same for groups, in this case delete group Intranet Demo Group and Lizadmin group. Go to Lizmap configuration menu / Delete the « intranet » repository (at the bottom). Then you need to change the URL WMS Server, go to Lizmap configuration menu / Edit the Services form and change the WMS Server URL from: http://127.0.0.1/cgi-bin/qgis_mapserv.fcgi to http://localhost/qgis/qgis_mapserv.fcgi.exe After that, also change the cache directory from C:/Windows/Temp/ to: C:/webserver/cache/ and save this configuration. Now check the Montpellier demo project is working: http://localhost/index.php/view/map/?repository=montpellier&project=montpellier

Configuration des dossiers Lizmap

You need to create a Lizmap directory architecture for organization porposes. Create the following directories via a *.bat file ( Please Check line ends are correct, you can open using notepad and not notepad++):

mkdir C:\webserver\data\common\
mkdir C:\webserver\data\document\
mkdir C:\webserver\data\prod\
mkdir C:\webserver\data\prod\common\
mkdir C:\webserver\data\prod\rep1\
mkdir C:\webserver\data\prod\rep1\media\
mkdir C:\webserver\data\prod\rep1\media\js\
mkdir C:\webserver\data\prod\rep2\
mkdir C:\webserver\data\prod\rep2\media\
mkdir C:\webserver\data\prod\rep2\media\js\
mkdir C:\webserver\data\preprod
mkdir C:\webserver\data\preprod\common\
mkdir C:\webserver\data\preprod\rep1\
mkdir C:\webserver\data\preprod\rep1\media\
mkdir C:\webserver\data\preprod\rep1\media\js\
mkdir C:\webserver\data\preprod\rep2\
mkdir C:\webserver\data\preprod\rep2\media\
mkdir C:\webserver\data\preprod\rep2\media\js\

Maintenant nous devons avoir accès au dossier C:\webserver\data\prod et ses sous-dossiers, ainsi l’administrateur SIG peut envoyer les fichiers projet Qgis, le fichier de configuration Lizmap pour chaque projet, les données SIG dans ces dossiers et d’autres documents. Aller dans le panneau d’administration Lizmap à l’adresse “http://localhost.admin.php” et créer le nouveau répertoire. Suivez les étapes :

  • Configuration Lizmap / Créer un nouveau répertoire (bouton en bas de la page)

  • id = rep1

  • label = Un nom pour le dépôt (vous pourrez le changer plus tard)

  • path = /webserver/data/prod/rep1/

Note

IMPORTANT POUR LE CHEMIN DU DÉPÔT, NE PAS UTILISER : C:\webserver\data\prod\rep1

In Apache you need to Add a vhost to publish SVG and images files via HTTP this will avoid the bug in QGIS Server under Windows which cannot display SVG icon when you have a relative path. Create a folder D:/webserver/data/document/ and modify the file C:/webserver/Apache24/conf/extra/httpd-vhosts.conf . Please add these lines before CustomLog:

Alias /document/ "C:/webserver/data/document/"
<Directory "C:/webserver/Data/document">
    Options -Indexes +FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

After this step save and restart Apache. Please check if you can add svg file in the folder C:/webserver/Data/document/svg/, for example C:/webserver/Data/document/svg/my_icon.svg and then access it via http://localhost/document/svg/my_icon.svg and use it as the SVG path in the style properties of a vector layer.

Configuration du serveur Filezilla

Now you will configure a FTP to have a rmeote access and deploy in a easy way into the server the qgis projects and their project elements. First you need to download at https://filezilla-project.org/download.php?type=server. Then install the default configuration.

Note

Ne pas oublier « d’exécuter avec les droits d’administrateur »

  1. Spécifiez le port : 14147

  2. Open the FileZilla Server Interface trough Windows Menu / All programs / FileZilla Server / FileZilla Server Interface and click OK to connect (no password required yet).

  3. Modify some options via Menu Edit / Settings and change IP Filter if needed : to filter only some IP, use « * » in the first block, the add the mask in the second block.

  4. Passive mode settings : Use following IP : write your public IP + change port range : 5500 5700.

  5. Logging: Enable logging to file, and limit log file size to 500 KB.

  6. SSL/TLS settings : Enable FTP over SSL/TLS && Generate new certificate into C:webservercertftp_certificate.crt && Allow explicit FTP over TLS && Disallow plain unencrypted FTP && Leave port 990.

  7. Autoban - Activé le avec les valeurs par défaut.

  8. Create user: Edit / Users - button Add user= lizmap_user and pass= choose_a_password

  9. Shared folder: Add D:\webserver\prod\data - Give all rights by checking checkboxes for Files and Directories.

  10. Vous pouvez ajouter un filtre d’IP ici également si besoin.

Now you need to it, install FireFTP and restart Firefox. After that try to connect with: Server = localhost . Use Passive mode AND check IPV6.

Now you need to set the PREPROD environment, for this you need to:

  1. Copy C:\webserver\lizmap\prod content into C:\webserver\lizmap\preprod ;

  2. Delete content of folder C:\webserver\lizmap\preprod\master\temp\lizmap\www\ ;

  3. Lauch admin web interface to configure preprod lizmap repositories: http://localhost/preprod/admin.php ;

  4. In Lizmap / Configuration Lizmap / Services : Change « Cache root directory » into C:\webserver\cache\preprod.