Aller au contenu | Aller au menu | Aller à la recherche

Test LizMap on Windows with OSGEO4W

Short tutorial to help you test LizMap on Windows.

The environment is Windows 7 and the LizMap Web Client version is 2.2.0

1) Download OSGeo4W on the QGIS download page:
http://hub.qgis.org/projects/quantum-gis/wiki/Download#12-OSGeo4W-Installer

2) Run OSGeo4W installer and choose the advanced installation: osgeo4w-01.png

3) Use internet installation: osgeo4w-02.png

4) Select the root for OSGeo4W elements installation and prefer the option for acces to all users: osgeo4w-03.png

5) Select the root of local packages: osgeo4w-04.png

6) Specify the type of internet connection(with proxy or not): osgeo4w-05.png

7) Select in 'Desktop' the package 'QGIS-full' : osgeo4w-06.png

8) Select in 'Web' the package 'QGIS-server' : osgeo4w-07.png

9) Select in 'Lib' the package 'fcgi' : osgeo4w-08.png

10) Launch and complete the installation.

At this stage all that is necessary to LizMap is installed on your computer.
The next steps are to configure the server, install and configure LizMap.

11) To verify if the server is well installed, open the address 'http://localhost' in the browser; if nothing is displayed that the installation has failed.

12) Click on the link 'phpinfo' on the home page of the OSGeo4W Apache server. This page allows you to check the configuration of your server. You should find infomrtaion about cgi-fcgi, PDO and PDO_sqlite but not on CURL or GD which depends LizMap. osgeo4w-09.png osgeo4w-10.png

13) Open the file C:\OSGeo4W\bin\PHP.ini and uncomment the extensions curl and gd2: osgeo4w-11.png

14) The C:\OSGeo4W\bin\PHP.ini file change to enable CURL and GD in PHP, requires to restart the apache server. To do this, click in the windows main menu on the apache monitor 'All programs > OSGeo4W > Apache > OSGeo4W-Apache-Monitor'. osgeo4w-12.png

15) Click on the apache monitor that is among the hidden icons in the task bar (bottom right) and on 'Restart'. osgeo4w-13.png

16) In the browser, reload the page 'phpinfo'. You should find CURL and GD section. osgeo4w-14.png

17) Download LizMap. In the installation documentation, there is a 'wget' command line; it tells you how to build the LizMap download URL: osgeo4w-15.png What gives here : http://demo.3liz.com/download/lizmap-web-client-2.2.0.zip

18) Unzip LizMap in 'C:\OSGeo4W\apache\htdocs\lizmap': osgeo4w-16.png

19) Test whether LizMap is well instlled by oppening the address 'http://localhost/lizmap/lizmap-web-client/2.2.0/lizmap/www' in the browser. You should see the project "Montpellier" comes with LizMap and configured to be visible by all. To view the map, it will have to configure LizMap.

20) As indicated in the LizMap installation documentation, open the address 'http://localhost/lizmap/lizmap-web-client/2.2.0/lizmap/www/admin.php' and connect with the login / password: 'admin/admin'.

21) Click on 'LizMap Configuration' then on modify in the Services section to precise the url of your QGIS-Server.

22) Replace the WMS server url by 'http://127.0.0.1/qgis/qgis_mapserv.fcgi.exe' and save: osgeo4w-17.png

23) To ensure that the configuration was successfull, click on 'Projects list' on top of the page. You should have acces to two maps since you are logged in as admin. Click on one of the maps. If the configuration is correct you should see the map and be in possession of a LizMap version ready for your maps.

To configure LizMap I suggest you to read the documentation:
http://hub.qgis.org/wiki/lizmapwebclient/Installation_en

Any feedback is welcome, and good tests.