Skip to content

1. Requirements

Uroš Preložnik edited this page Apr 13, 2020 · 31 revisions

Windows users read this post.

1. Apache Web Server (2.4)

Apache install:

apt-get install apache2 libapache2-mod-fcgid

and following modules and configurations enabled:

a2enmod rewrite
a2enmod cgi
a2enmod fcgid

2. QGIS Server

Standard setup:

apt-get install qgis-server

To install latest version go to QGIS Official download page and read about adding repositories

TEST: localhost GetCapabilities request

Note: Recommended QGIS version is 3.4.x.

3. PostgreSQL >=9.4

Database for administration (not for storing your data!), with some modifications possible to use also SQLite, but this setup is for PostgreSQL. You will have to work directly with database. You can use pgAdmin3, or phpPgAdmin for that purpose, if either is not possible you will be stuck with SQL queries runnning from pgsql.

Minimum install:

apt-get install postgresql postgresql-distrib

4. PHP >=5.5 (Works also with PHP 7)

Standard setup with PDO driver pdo_pgsql for PostgreSQL enabled and support for XML and ZIP.

apt-get install php libapache2-mod-php php-pgsql php-xml php-zip

5. GDAL

ogr2ogr (part of GDAL) is required for using Layer->Export Layer to... option. You have this included if you install on server also QGIS Dektop.

apt-get install gdal-bin

Clone this wiki locally