How to install QGIS server and Apache on Windows?

How to install QGIS server and Apache on Windows?

This is an updated version of my previous blog post on installing Apache, QGIS Server, and Lizweb Map on Windows OS – this time using Apache 2.4.33, QGIS Server LTR 2.18.21 and Lizmap Web Client 3.1.12. I just updated my Windows Server 2016 and needed to redo my GIS server.

Is there an issue with QGIS server 3.4?

Please note there is issue with 3.4 reported here: https://issues.qgis.org/issues/20873 Let’s try to setup brand new QGIS Server 3.0 on Windows 10 and Apache Web Server. Download XAMPP distribution (you will also install PHP, probably you need it anyway). You can remove all other options as only installing Apache and PHP.

Is the lizmap web client compatible with QGIS server?

Lizmap Web Client doesn’t work properly with the newer versions of QGIS Server, so you must use the LTR 2.14. Note: When I installed QGIS desktop and server LTR 2.14 via the Advanced Setup – I had issues with QGIS starting up properly (something about missing components), even though the installation itself didn’t give me any errors.

How to install PHP and Apache on Windows 10?

Download XAMPP distribution (you will also install PHP, probably you need it anyway). You can remove all other options as only installing Apache and PHP. Download 64 bit OSGeo4W installer .

What kind of back end does QGIS use?

QGIS Server uses QGIS as back end for the GIS logic and for map rendering. Furthermore, the Qt library is used for graphics and for platform-independent C++ programming.

Where to install Apache side by side with lizmap?

For my installation I put Apache and Lizmap side-by-side inside a C:/webserver directory. You can however, put your installations inside of Apache root directory (e.g. C:/Apache24/Lizmap) or inside Apache htdocs directory (e.g. C:/Apache24/htdocs/lizmap).

How to check if Apache server is working?

To quickly check to see Apache configurations work and to see if Apache starts up correctly you can run the httpd.exe as a console application. You can use the command window (CMD) to run the httpd.exe or go into the directory where httpd.exe is located and run as admin. a.