Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.53 KB

INSTALL.md

File metadata and controls

68 lines (48 loc) · 1.53 KB

Installing Lizmap

Requirements

First you should install

  • the web server Apache
  • PHP and its extensions sqlite, gd, and curl
  • QGIS.
  • Postgresql with postgis

Get the source

Download the Lizmap archive or get files from https://github.com/3liz/lizmap-web-client/.

Copy files to a directory for apache, let's say /var/www/mylizmap/.

Installation

Set rights for Apache, so php scripts could write some temporary files or do changes.

cd /var/www/mylizmap/
lizmap/install/set_rights.sh www-data www-data

Create lizmapConfig.ini.php, localconfig.ini.php and profiles.ini.php and edit them to set parameters specific to your installation. You can modify lizmapConfig.ini.php to set the url of qgis map server and other things, and profiles.ini.php to store data in a database other than an sqlite database.

cd lizmap/var/config
cp lizmapConfig.ini.php.dist lizmapConfig.ini.php
cp localconfig.ini.php.dist localconfig.ini.php
cp profiles.ini.php.dist profiles.ini.php
cd ../../..

In case you want to enable the demo repositories, just add to localconfig.ini.php the following:

[modules]
lizmap.installparam=demo

Then you can launch the installer

php lizmap/install/installer.php

Test

In your browser, launch: http://127.0.0.1/mylizmap/lizmap/www.

In case you get a 500 - internal server error, run again:

cd /var/www/mylizmap/
lizmap/install/set_rights.sh www-data www-data